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

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

Issue 339363002: Fix invalid syntax for JS setters in tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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";
11 Object.prototype.getter = "FAIL"; 11 Object.prototype.getter = "FAIL";
12 Object.prototype.setter = "FAIL"; 12 Object.prototype.setter = "FAIL";
13 Object.prototype.isOwn = true; 13 Object.prototype.isOwn = true;
14 // Used to interfere into InjectedScript.primitiveTypes 14 // Used to interfere into InjectedScript.primitiveTypes
15 Object.prototype.object = true; 15 Object.prototype.object = true;
16 // Used to interfere into InjectedScript.getEventListeners() 16 // Used to interfere into InjectedScript.getEventListeners()
17 Object.prototype.nullValue = null; 17 Object.prototype.nullValue = null;
18 Object.prototype.undefValue = undefined; 18 Object.prototype.undefValue = undefined;
19 19
20 var foo = "bar"; 20 var foo = "bar";
21 var testObj = { 21 var testObj = {
22 get getter() { }, 22 get getter() { },
23 set setter() { }, 23 set setter(_) { },
24 baz: "baz" 24 baz: "baz"
25 }; 25 };
26 26
27 function test() 27 function test()
28 { 28 {
29 function snippet1() { 29 function snippet1() {
30 (function (obj) { 30 (function (obj) {
31 with (obj) { 31 with (obj) {
32 console.log('with: ' + a); 32 console.log('with: ' + a);
33 eval("console.log('eval in with: ' + a)"); 33 eval("console.log('eval in with: ' + a)");
(...skipping 62 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

Powered by Google App Engine
This is Rietveld 408576698