Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: LayoutTests/inspector-protocol/timeline/timeline-timer.html

Issue 1021543002: DevTools: remove InspectorTest.assert from inspector-protocol tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script type="text/javascript" src="../../http/tests/inspector-protocol/tracing- test.js"></script> 4 <script type="text/javascript" src="../../http/tests/inspector-protocol/tracing- test.js"></script>
5 <script> 5 <script>
6 6
7 function performActions(callback) 7 function performActions(callback)
8 { 8 {
9 var timerId = setTimeout(function() 9 var timerId = setTimeout(function()
10 { 10 {
(...skipping 19 matching lines...) Expand all
30 InspectorTest.log("SUCCESS: testFunctionTimerFired"); 30 InspectorTest.log("SUCCESS: testFunctionTimerFired");
31 } 31 }
32 32
33 function finish(devtoolsEvents) 33 function finish(devtoolsEvents)
34 { 34 {
35 function hasTimerId(id, e) { return e.args.data.timerId === id} 35 function hasTimerId(id, e) { return e.args.data.timerId === id}
36 36
37 var installTimer1 = InspectorTest.findEvent("TimerInstall", "I", hasTime rId.bind(this, firedTimerId)); 37 var installTimer1 = InspectorTest.findEvent("TimerInstall", "I", hasTime rId.bind(this, firedTimerId));
38 var installTimer2 = InspectorTest.findEvent("TimerInstall", "I", hasTime rId.bind(this, removedTimerId)); 38 var installTimer2 = InspectorTest.findEvent("TimerInstall", "I", hasTime rId.bind(this, removedTimerId));
39 39
40 InspectorTest.assert(!!installTimer1.args.data.frame, "TimerInstall fram e"); 40 InspectorTest.log("TimerInstall has frame: " + !!installTimer1.args.data .frame);
41 InspectorTest.assertEquals(installTimer1.args.data.frame, installTimer2. args.data.frame, "TimerInstall frame match"); 41 InspectorTest.log("TimerInstall frames match: " + (installTimer1.args.da ta.frame === installTimer2.args.data.frame));
42 42
43 InspectorTest.findEvent("TimerRemove", "I", hasTimerId.bind(this, remove dTimerId)); 43 InspectorTest.findEvent("TimerRemove", "I", hasTimerId.bind(this, remove dTimerId));
44 InspectorTest.findEvent("TimerFire", "X", hasTimerId.bind(this, firedTim erId)); 44 InspectorTest.findEvent("TimerFire", "X", hasTimerId.bind(this, firedTim erId));
45 45
46 InspectorTest.log("SUCCESS: found all expected events."); 46 InspectorTest.log("SUCCESS: found all expected events.");
47 InspectorTest.completeTest(); 47 InspectorTest.completeTest();
48 } 48 }
49 } 49 }
50 </script> 50 </script>
51 </head> 51 </head>
52 <body onLoad="runTest();"> 52 <body onLoad="runTest();">
53 <div id="myDiv">DIV</div> 53 <div id="myDiv">DIV</div>
54 </body> 54 </body>
55 </html> 55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698