OLD | NEW |
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 Loading... |
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> |
OLD | NEW |