| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 div#test { | 4 div#test { |
| 5 display: none; | 5 display: none; |
| 6 background-color: blue; | 6 background-color: blue; |
| 7 width: 100px; | 7 width: 100px; |
| 8 height: 100px; | 8 height: 100px; |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 InspectorTest.addResult("Event sanity test done"); | 59 InspectorTest.addResult("Event sanity test done"); |
| 60 } | 60 } |
| 61 | 61 |
| 62 function onTracingComplete() | 62 function onTracingComplete() |
| 63 { | 63 { |
| 64 InspectorTest.addResult("Tracing complete"); | 64 InspectorTest.addResult("Tracing complete"); |
| 65 runEventsSanityCheck(); | 65 runEventsSanityCheck(); |
| 66 InspectorTest.completeTest(); | 66 InspectorTest.completeTest(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 var tracingModel = new WebInspector.TracingModel(WebInspector.targetManager.
activeTarget()); | 69 var tracingModel = new WebInspector.TracingModel(WebInspector.targetManager.
mainTarget()); |
| 70 tracingModel.start("", "", onTracingStarted); | 70 tracingModel.start("", "", onTracingStarted); |
| 71 function onTracingStarted(error) | 71 function onTracingStarted(error) |
| 72 { | 72 { |
| 73 InspectorTest.addResult("Tracing started (error: " + JSON.stringify(erro
r) + ")"); | 73 InspectorTest.addResult("Tracing started (error: " + JSON.stringify(erro
r) + ")"); |
| 74 InspectorTest.evaluateInPage("doWork()", function() { | 74 InspectorTest.evaluateInPage("doWork()", function() { |
| 75 tracingModel.stop(onTracingComplete); | 75 tracingModel.stop(onTracingComplete); |
| 76 }); | 76 }); |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 | 79 |
| 80 </script> | 80 </script> |
| 81 </head> | 81 </head> |
| 82 <body onload="runTest()"> | 82 <body onload="runTest()"> |
| 83 <div id="test"> | 83 <div id="test"> |
| 84 </div> | 84 </div> |
| 85 </body> | 85 </body> |
| 86 </html> | 86 </html> |
| OLD | NEW |