Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: LayoutTests/inspector/console/console-eval-scoped.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/console/console-dir-global.html ('k') | LayoutTests/inspector/console/console-eval-throw.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698