Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <link rel="stylesheet" href="resources/style.css"> | 3 <link rel="stylesheet" href="resources/style.css"> |
| 4 <script src="../inspector/inspector-test.js"></script> | 4 <script src="../inspector/inspector-test.js"></script> |
| 5 <script src="../inspector/elements-test.js"></script> | 5 <script src="../inspector/elements-test.js"></script> |
| 6 <style> | 6 <style> |
| 7 #testDiv { | 7 #testDiv { |
| 8 font-family: arial; | 8 font-family: arial; |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 testRunner.waitUntilDone(); | 27 testRunner.waitUntilDone(); |
| 28 if (window.testRunner) | 28 if (window.testRunner) |
| 29 testRunner.showWebInspector(); | 29 testRunner.showWebInspector(); |
| 30 runTest(); | 30 runTest(); |
| 31 } | 31 } |
| 32 | 32 |
| 33 function test() | 33 function test() |
| 34 { | 34 { |
| 35 InspectorTest.RuntimeAgent.evaluate("window.didReopen", dispatch); | 35 InspectorTest.RuntimeAgent.evaluate("window.didReopen", dispatch); |
| 36 | 36 |
| 37 function dispatch(error, result, wasThrown) | 37 function dispatch(error, result) |
|
dgozman
2016/08/11 01:54:34
While you are here, let's add exceptionDetails sec
kozy
2016/08/11 21:04:21
Done.
| |
| 38 { | 38 { |
| 39 if (result.type !== "number") { | 39 if (result.type !== "number") { |
| 40 InspectorTest.addResult("Opening front-end for the first time"); | 40 InspectorTest.addResult("Opening front-end for the first time"); |
| 41 testFirstOpen(); | 41 testFirstOpen(); |
| 42 } else { | 42 } else { |
| 43 InspectorTest.addResult("Opening front-end second time"); | 43 InspectorTest.addResult("Opening front-end second time"); |
| 44 InspectorTest.addResult("Dump styles after inspector was reopened:") ; | 44 InspectorTest.addResult("Dump styles after inspector was reopened:") ; |
| 45 dump(InspectorTest.completeTest); | 45 dump(InspectorTest.completeTest); |
| 46 } | 46 } |
| 47 } | 47 } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 } | 125 } |
| 126 </script> | 126 </script> |
| 127 </head> | 127 </head> |
| 128 | 128 |
| 129 <body onload="initTest()"> | 129 <body onload="initTest()"> |
| 130 <p>This test checks that styles edited through inspector are correctly shown upo n reattach.</p> | 130 <p>This test checks that styles edited through inspector are correctly shown upo n reattach.</p> |
| 131 <div id="testDiv"></div> | 131 <div id="testDiv"></div> |
| 132 <div id="other"></div> | 132 <div id="other"></div> |
| 133 </body> | 133 </body> |
| 134 </html> | 134 </html> |
| OLD | NEW |