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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-dir.html

Issue 1942883002: [Devtools] isTrusted in CustomEvents shown twice in console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <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 5
6 <script> 6 <script>
7 function onload() 7 function onload()
8 { 8 {
9 console.dir(["test1", "test2"]); 9 console.dir(["test1", "test2"]);
10 console.dir(document.childNodes); 10 console.dir(document.childNodes);
(...skipping 20 matching lines...) Expand all
31 console.dir({ __proto__: null }); 31 console.dir({ __proto__: null });
32 console.dir({ foo: { __proto__: null }}); 32 console.dir({ foo: { __proto__: null }});
33 // Test "No Scopes" placeholder. 33 // Test "No Scopes" placeholder.
34 console.dir(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").g et); 34 console.dir(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").g et);
35 35
36 // Test big typed array: should be no crash or timeout. 36 // Test big typed array: should be no crash or timeout.
37 var bigTypedArray = new Uint8Array(new ArrayBuffer(400 * 1000 * 1000)); 37 var bigTypedArray = new Uint8Array(new ArrayBuffer(400 * 1000 * 1000));
38 bigTypedArray["FAIL"] = "FAIL: Object.getOwnPropertyNames() should not have been run"; 38 bigTypedArray["FAIL"] = "FAIL: Object.getOwnPropertyNames() should not have been run";
39 console.dir(bigTypedArray); 39 console.dir(bigTypedArray);
40 40
41 // document.createEvent("Event") has a special property "isTrusted" flagged "Unforgeable"
lushnikov 2016/05/02 18:38:19 style: comments should end with "."
allada 2016/05/02 19:06:12 Done.
42 var event = document.createEvent("Event");
43 Object.defineProperty(event, "timeStamp", {value: 0})
44 console.dir(event);
45
41 runTest(); 46 runTest();
42 } 47 }
43 //# sourceURL=console-dir.html 48 //# sourceURL=console-dir.html
44 </script> 49 </script>
45 50
46 <script> 51 <script>
47 function test() 52 function test()
48 { 53 {
49 InspectorTest.expandConsoleMessages(step1, expandTreeElementFilter); 54 InspectorTest.expandConsoleMessages(step1, expandTreeElementFilter);
50 55
(...skipping 18 matching lines...) Expand all
69 </script> 74 </script>
70 </head> 75 </head>
71 76
72 <body onload="onload()"> 77 <body onload="onload()">
73 <p> 78 <p>
74 Tests that console logging dumps proper messages. 79 Tests that console logging dumps proper messages.
75 </p> 80 </p>
76 81
77 </body> 82 </body>
78 </html> 83 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698