OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../../http/tests/inspector/console-test.js"></script> |
5 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
6 <script src="../../../http/tests/inspector/network-test.js"></script> | 6 <script src="../../../http/tests/inspector/network-test.js"></script> |
7 <script src="../../../http/tests/inspector/resources-test.js"></script> | 7 <script src="../../../http/tests/inspector/resources-test.js"></script> |
8 <script> | 8 <script> |
9 function addErrorToConsole() | 9 function addErrorToConsole() |
10 { | 10 { |
(...skipping 11 matching lines...) Expand all Loading... |
22 InspectorTest.runDebuggerTestSuite([ | 22 InspectorTest.runDebuggerTestSuite([ |
23 function testConsoleMessage(next) | 23 function testConsoleMessage(next) |
24 { | 24 { |
25 InspectorTest.showScriptSource("source-frame.html", didShowScriptSou
rce); | 25 InspectorTest.showScriptSource("source-frame.html", didShowScriptSou
rce); |
26 | 26 |
27 var shownSourceFrame; | 27 var shownSourceFrame; |
28 function didShowScriptSource(sourceFrame) | 28 function didShowScriptSource(sourceFrame) |
29 { | 29 { |
30 InspectorTest.addResult("Script source was shown."); | 30 InspectorTest.addResult("Script source was shown."); |
31 shownSourceFrame = sourceFrame; | 31 shownSourceFrame = sourceFrame; |
32 InspectorTest.addSniffer(Sources.UISourceCodeFrame.prototype, "_
addMessageToSource", didAddMessage); | 32 InspectorTest.addSniffer(SourceFrame.UISourceCodeFrame.prototype
, "_addMessageToSource", didAddMessage); |
33 InspectorTest.addSniffer(Sources.UISourceCodeFrame.prototype, "_
removeMessageFromSource", didRemoveMessage); | 33 InspectorTest.addSniffer(SourceFrame.UISourceCodeFrame.prototype
, "_removeMessageFromSource", didRemoveMessage); |
34 InspectorTest.evaluateInPage("addErrorToConsole()"); | 34 InspectorTest.evaluateInPage("addErrorToConsole()"); |
35 } | 35 } |
36 | 36 |
37 function didAddMessage(message) | 37 function didAddMessage(message) |
38 { | 38 { |
39 if (this !== shownSourceFrame) | 39 if (this !== shownSourceFrame) |
40 return; | 40 return; |
41 InspectorTest.addResult("Message added to source frame: " + mess
age.text()); | 41 InspectorTest.addResult("Message added to source frame: " + mess
age.text()); |
42 setImmediate(function() { Console.ConsoleView.clearConsole(); })
; | 42 setImmediate(function() { Console.ConsoleView.clearConsole(); })
; |
43 } | 43 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 </head> | 78 </head> |
79 | 79 |
80 <body onload="runTest()"> | 80 <body onload="runTest()"> |
81 <p>Tests that it's possible to set breakpoint in source frame, and that | 81 <p>Tests that it's possible to set breakpoint in source frame, and that |
82 source frame displays breakpoints and console errors. | 82 source frame displays breakpoints and console errors. |
83 </p> | 83 </p> |
84 | 84 |
85 </body> | 85 </body> |
86 </html> | 86 </html> |
OLD | NEW |