| 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 // Used to interfere into InjectedScript._propertyDescriptors() | 7 // Used to interfere into InjectedScript._propertyDescriptors() |
| 8 Object.prototype.get = function() { return "FAIL"; }; | 8 Object.prototype.get = function() { return "FAIL"; }; |
| 9 Object.prototype.set = function() { return "FAIL"; }; | 9 Object.prototype.set = function() { return "FAIL"; }; |
| 10 Object.prototype.value = "FAIL"; | 10 Object.prototype.value = "FAIL"; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 function bodyText(f) { | 42 function bodyText(f) { |
| 43 var text = f.toString(); | 43 var text = f.toString(); |
| 44 var begin = text.indexOf("{"); | 44 var begin = text.indexOf("{"); |
| 45 return text.substring(begin); | 45 return text.substring(begin); |
| 46 } | 46 } |
| 47 | 47 |
| 48 function dumpAndClearConsoleMessages(next) | 48 function dumpAndClearConsoleMessages(next) |
| 49 { | 49 { |
| 50 InspectorTest.runAfterPendingDispatches(function() { | 50 InspectorTest.runAfterPendingDispatches(function() { |
| 51 InspectorTest.dumpConsoleMessages(); | 51 InspectorTest.dumpConsoleMessages(); |
| 52 WebInspector.consoleModel.requestClearMessages(); | 52 InspectorTest.consoleModel.requestClearMessages(); |
| 53 InspectorTest.runAfterPendingDispatches(next); | 53 InspectorTest.runAfterPendingDispatches(next); |
| 54 }); | 54 }); |
| 55 } | 55 } |
| 56 | 56 |
| 57 InspectorTest.runTestSuite([ | 57 InspectorTest.runTestSuite([ |
| 58 function testSnippet1(next) | 58 function testSnippet1(next) |
| 59 { | 59 { |
| 60 InspectorTest.evaluateInPage(bodyText(snippet1), dumpAndClearConsole
Messages.bind(null, next)); | 60 InspectorTest.evaluateInPage(bodyText(snippet1), dumpAndClearConsole
Messages.bind(null, next)); |
| 61 }, | 61 }, |
| 62 | 62 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 </script> | 97 </script> |
| 98 </head> | 98 </head> |
| 99 <body onload="runTest()"> | 99 <body onload="runTest()"> |
| 100 <p> | 100 <p> |
| 101 Tests that evaluating 'console.log()' in the console will have access to its out
er scope variables. | 101 Tests that evaluating 'console.log()' in the console will have access to its out
er scope variables. |
| 102 <a href="https://bugs.webkit.org/show_bug.cgi?id=60547">Bug 60547.</a> | 102 <a href="https://bugs.webkit.org/show_bug.cgi?id=60547">Bug 60547.</a> |
| 103 </p> | 103 </p> |
| 104 </body> | 104 </body> |
| 105 </html> | 105 </html> |
| OLD | NEW |