REGRESSION (r214129): fast/media/mq-prefers-reduced-motion.html fails
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Apr 2017 01:45:04 +0000 (01:45 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Apr 2017 01:45:04 +0000 (01:45 +0000)
commit13b892465c2e2dd830c7b2561a4501c5a294070d
treee8d527f6998ac7bb0028e6a97891352a0e11a488
parent51f7b4989a34216501fe354de71fffe4b533c719
REGRESSION (r214129): fast/media/mq-prefers-reduced-motion.html fails
https://bugs.webkit.org/show_bug.cgi?id=171303
<rdar://problem/31434879>

Reviewed by Brent Fulgham.

This particular test was calling notifyDone() from within
a callback triggered by the UIScriptController script, which
meant that by the time the controller tried to call its callback,
the test had finished.

* fast/media/mq-prefers-reduced-motion-matchMedia.html: Make sure
notifyDone is called after both the callback-like functions have
triggered.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/media/mq-prefers-reduced-motion-matchMedia.html