| 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> | 5 <script> |
| 6 | 6 |
| 7 window.accessedGet = false; | 7 window.accessedGet = false; |
| 8 function testFunction() | 8 function testFunction() |
| 9 { | 9 { |
| 10 let proxied = new Proxy({ boo: 42 }, { | 10 let proxied = new Proxy({ boo: 42 }, { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 function test() | 26 function test() |
| 27 { | 27 { |
| 28 InspectorTest.waitUntilNthMessageReceived(2, dumpMessages); | 28 InspectorTest.waitUntilNthMessageReceived(2, dumpMessages); |
| 29 InspectorTest.evaluateInPage("testFunction()"); | 29 InspectorTest.evaluateInPage("testFunction()"); |
| 30 | 30 |
| 31 function dumpMessages() | 31 function dumpMessages() |
| 32 { | 32 { |
| 33 var consoleView = WebInspector.ConsoleView.instance(); | 33 var consoleView = WebInspector.ConsoleView.instance(); |
| 34 consoleView._viewport.invalidate() | 34 consoleView._viewport.invalidate() |
| 35 var element = consoleView._visibleViewMessages[0].contentElement(); | 35 var element = consoleView._visibleViewMessages[0].contentElement(); |
| 36 dumpNoteVisible(element, "info-note"); | |
| 37 | 36 |
| 38 InspectorTest.dumpConsoleMessages(false, true); | 37 InspectorTest.dumpConsoleMessages(false, true); |
| 39 InspectorTest.evaluateInPage("window.accessedGet", dumpAccessedGetAndExp
and); | 38 InspectorTest.evaluateInPage("window.accessedGet", dumpAccessedGetAndExp
and); |
| 40 } | 39 } |
| 41 | 40 |
| 42 function dumpAccessedGetAndExpand(result) | 41 function dumpAccessedGetAndExpand(result) |
| 43 { | 42 { |
| 44 InspectorTest.addResult("window.accessedGet = " + result.value); | 43 InspectorTest.addResult("window.accessedGet = " + result.value); |
| 45 InspectorTest.expandConsoleMessages(dumpExpandedConsoleMessages); | 44 InspectorTest.expandConsoleMessages(dumpExpandedConsoleMessages); |
| 46 } | 45 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 70 </script> | 69 </script> |
| 71 </head> | 70 </head> |
| 72 | 71 |
| 73 <body onload="runTest()"> | 72 <body onload="runTest()"> |
| 74 <p> | 73 <p> |
| 75 Tests that console logging dumps proxy properly. | 74 Tests that console logging dumps proxy properly. |
| 76 </p> | 75 </p> |
| 77 | 76 |
| 78 </body> | 77 </body> |
| 79 </html> | 78 </html> |
| OLD | NEW |