Web Inspector: adopt Object.awaitEvent in LayoutTests/inspector/css
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Sep 2016 23:51:00 +0000 (23:51 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Sep 2016 23:51:00 +0000 (23:51 +0000)
commitb1dbb8c3154b510676ec261f4238a2c850753a65
tree6e5c6ac651223e893e13b97b8ce731ff968f3e04
parent3898301a0296b4d087fdbbdba72a18135e70ebae
Web Inspector: adopt Object.awaitEvent in LayoutTests/inspector/css
https://bugs.webkit.org/show_bug.cgi?id=162071

Patch by Devin Rousso <dcrousso+webkit@gmail.com> on 2016-09-19
Reviewed by Brian Burg.

Replace instances of singleFireEventListener with awaitEvent and use promise logic to make
tests more readable.

* inspector/css/createStyleSheet.html:
* inspector/css/generate-css-rule-string.html:
* inspector/css/manager-preferredInspectorStyleSheetForFrame-expected.txt:
* inspector/css/manager-preferredInspectorStyleSheetForFrame.html:
* inspector/css/stylesheet-events-basic.html:
* inspector/css/stylesheet-events-inspector-stylesheet.html:
* inspector/css/stylesheet-events-multiple-documents.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@206133 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/css/createStyleSheet.html
LayoutTests/inspector/css/generate-css-rule-string.html
LayoutTests/inspector/css/manager-preferredInspectorStyleSheetForFrame-expected.txt
LayoutTests/inspector/css/manager-preferredInspectorStyleSheetForFrame.html
LayoutTests/inspector/css/stylesheet-events-basic.html
LayoutTests/inspector/css/stylesheet-events-inspector-stylesheet.html
LayoutTests/inspector/css/stylesheet-events-multiple-documents.html