Changeset 206115 in webkit
- Timestamp:
- Sep 19, 2016 1:47:18 PM (8 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r206114 r206115 1 2016-09-19 Devin Rousso <dcrousso+webkit@gmail.com> 2 3 Web Inspector: adopt Object.awaitEvent in LayoutTests/inspector/script-profiler 4 https://bugs.webkit.org/show_bug.cgi?id=162101 5 6 Reviewed by Brian Burg. 7 8 Replace instances of singleFireEventListener with awaitEvent and use promise logic to make 9 tests more readable. 10 11 * inspector/script-profiler/event-type-Other.html: 12 1 13 2016-09-19 Devin Rousso <dcrousso+webkit@gmail.com> 2 14 -
trunk/LayoutTests/inspector/script-profiler/event-type-Other.html
r198648 r206115 30 30 name: "TrackingSession", 31 31 description: "Start a tracking session that includes multiple web script evaluations classified as an Other event type.", 32 test: function(resolve, reject) { 33 InspectorProtocol.awaitEvent({event: "ScriptProfiler.trackingStart"}).then((messageObject) => { 32 test(resolve, reject) { 33 InspectorProtocol.awaitEvent({event: "ScriptProfiler.trackingStart"}) 34 .then((messageObject) => { 34 35 ProtocolTest.log("ScriptProfiler.trackingStart"); 35 36 }); … … 40 41 }); 41 42 42 InspectorProtocol.awaitEvent({event: "ScriptProfiler.trackingComplete"}).then((messageObject) => { 43 InspectorProtocol.awaitEvent({event: "ScriptProfiler.trackingComplete"}) 44 .then((messageObject) => { 43 45 ProtocolTest.log("ScriptProfiler.trackingComplete"); 44 resolve(); 46 }) 47 .then(resolve, reject); 48 49 ProtocolTest.awaitEvent("TestPageTimerEvaluated") 50 .then((event) => { 51 InspectorProtocol.sendCommand("ScriptProfiler.stopTracking", {}); 45 52 }); 46 53 … … 49 56 ProtocolTest.evaluateInPage("triggerEventDispatchEvaluation()"); 50 57 ProtocolTest.evaluateInPage("triggerTimerEvaluation()"); 51 ProtocolTest.singleFireEventListener("TestPageTimerEvaluated", (event) => {52 InspectorProtocol.sendCommand("ScriptProfiler.stopTracking", {});53 });54 58 } 55 59 });
Note: See TracChangeset
for help on using the changeset viewer.