| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 50         InspectorTest.addResult("Event sanity test done"); | 50         InspectorTest.addResult("Event sanity test done"); | 
| 51     } | 51     } | 
| 52 | 52 | 
| 53     function onTracingComplete() | 53     function onTracingComplete() | 
| 54     { | 54     { | 
| 55         InspectorTest.addResult("Tracing complete"); | 55         InspectorTest.addResult("Tracing complete"); | 
| 56         runEventsSanityCheck(WebInspector.tracingAgent.events()); | 56         runEventsSanityCheck(WebInspector.tracingAgent.events()); | 
| 57         InspectorTest.completeTest(); | 57         InspectorTest.completeTest(); | 
| 58     } | 58     } | 
| 59 | 59 | 
| 60     WebInspector.tracingAgent.start("", onTracingStarted); | 60     WebInspector.tracingAgent.start("", "", onTracingStarted); | 
| 61     setTimeout(InspectorTest.completeTest.bind(InspectorTest), 2000); | 61     setTimeout(InspectorTest.completeTest.bind(InspectorTest), 2000); | 
| 62     function onTracingStarted(error) | 62     function onTracingStarted(error) | 
| 63     { | 63     { | 
| 64         InspectorTest.addResult("Tracing started (error: " + JSON.stringify(erro
    r) + ")"); | 64         InspectorTest.addResult("Tracing started (error: " + JSON.stringify(erro
    r) + ")"); | 
| 65         InspectorTest.evaluateInPage("doWork()", function() { | 65         InspectorTest.evaluateInPage("doWork()", function() { | 
| 66             WebInspector.tracingAgent.stop(onTracingComplete); | 66             WebInspector.tracingAgent.stop(onTracingComplete); | 
| 67         }); | 67         }); | 
| 68     } | 68     } | 
| 69 } | 69 } | 
| 70 | 70 | 
| 71 </script> | 71 </script> | 
| 72 </head> | 72 </head> | 
| 73 <body onload="runTest()"> | 73 <body onload="runTest()"> | 
| 74 <div id="test"> | 74 <div id="test"> | 
| 75 </div> | 75 </div> | 
| 76 </body> | 76 </body> | 
| 77 </html> | 77 </html> | 
| OLD | NEW | 
|---|