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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/resources/console-log-navigate.html

Issue 2954093003: [DevTools] Migrate inspector-protocol/runtime tests to new harness (Closed)
Patch Set: fail: Created 3 years, 5 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
OLDNEW
1 <script> 1 <script>
2 function navigate() 2 function navigate()
3 { 3 {
4 anchor = document.createElement("a"); 4 anchor = document.createElement("a");
5 anchor.href = "about:blank"; 5 anchor.href = "about:blank";
6 anchor.click(); 6 anchor.click();
7 } 7 }
8 8
9 function logArray() 9 function logArray()
10 { 10 {
11 array = []; 11 array = [];
12 array.__defineGetter__(0, () => navigate()); 12 array.__defineGetter__(0, () => navigate());
13 console.log(array); 13 console.log(array);
14 } 14 }
15 15
16 function logDate() 16 function logDate()
17 { 17 {
18 var a = new Date(); 18 var a = new Date();
19 a.toString = () => navigate(); 19 a.toString = () => navigate();
20 console.log(a); 20 console.log(a);
21 } 21 }
22 22
23 function logDateWithArg() 23 function logDateWithArg()
24 { 24 {
25 var a = new Date(); 25 var a = new Date();
26 a.toString = () => navigate(); 26 a.toString = () => navigate();
27 console.log(42, a); 27 console.log(42, a);
28 } 28 }
29 </script> 29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698