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

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

Issue 2596133002: Reland of DevTools: merge array formatting logic (Closed)
Patch Set: test Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-format-array-prototype-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Global Values 7 // Global Values
8 var globals = []; 8 var globals = [];
9 9
10 function log(current) 10 function log(current)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 arrayLikeFunction.splice = function() {}; 69 arrayLikeFunction.splice = function() {};
70 var smallTypedArray = new Uint8Array(new ArrayBuffer(400)); 70 var smallTypedArray = new Uint8Array(new ArrayBuffer(400));
71 smallTypedArray["foo"] = "bar"; 71 smallTypedArray["foo"] = "bar";
72 var bigTypedArray = new Uint8Array(new ArrayBuffer(400 * 1000 * 1000)); 72 var bigTypedArray = new Uint8Array(new ArrayBuffer(400 * 1000 * 1000));
73 bigTypedArray["FAIL"] = "FAIL: Object.getOwnPropertyNames() should not have been run"; 73 bigTypedArray["FAIL"] = "FAIL: Object.getOwnPropertyNames() should not have been run";
74 var namespace = {}; 74 var namespace = {};
75 namespace.longSubNamespace = {}; 75 namespace.longSubNamespace = {};
76 namespace.longSubNamespace.x = {}; 76 namespace.longSubNamespace.x = {};
77 namespace.longSubNamespace.x.className = function(){}; 77 namespace.longSubNamespace.x.className = function(){};
78 var instanceWithLongClassName = new namespace.longSubNamespace.x.className() ; 78 var instanceWithLongClassName = new namespace.longSubNamespace.x.className() ;
79 var bigArray = [];
80 bigArray.length = 200;
81 bigArray.fill(1);
79 globals = [ 82 globals = [
80 regex1, regex2, str, str2, error, errorWithMessage, errorWithMultilineMe ssage, node, func, multilinefunc, 83 regex1, regex2, str, str2, error, errorWithMessage, errorWithMultilineMe ssage, node, func, multilinefunc,
81 num, linkify, null, undefined, valuelessAttribute, valuedAttribute, exis tingAttribute, throwingLengthGetter, 84 num, linkify, null, undefined, valuelessAttribute, valuedAttribute, exis tingAttribute, throwingLengthGetter,
82 NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, array, {}, [fun ction() {}], bar, svg, 85 NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, array, {}, [fun ction() {}], bar, svg,
83 objectWithNonEnumerables, negZero, Object.create(null), Object, Object.p rototype, arrayLikeFunction, 86 objectWithNonEnumerables, negZero, Object.create(null), Object, Object.p rototype, arrayLikeFunction,
84 new Number(42), new String("abc"), new Uint16Array([1, 2, 3]), textNode, domException(), 87 new Number(42), new String("abc"), new Uint16Array([1, 2, 3]), textNode, domException(),
85 smallTypedArray, bigTypedArray, instanceWithLongClassName 88 smallTypedArray, bigTypedArray, instanceWithLongClassName, bigArray
86 ]; 89 ];
87 90
88 runTest(); 91 runTest();
89 } 92 }
90 93
91 function domException() 94 function domException()
92 { 95 {
93 var result = "FAIL"; 96 var result = "FAIL";
94 try { 97 try {
95 var a = document.createElement("div"); 98 var a = document.createElement("div");
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 148 }
146 </script> 149 </script>
147 </head> 150 </head>
148 151
149 <body onload="onload()"> 152 <body onload="onload()">
150 <div id="x"></div> 153 <div id="x"></div>
151 <p id="p">Tests that console logging dumps proper messages.</p> 154 <p id="p">Tests that console logging dumps proper messages.</p>
152 </body> 155 </body>
153 <svg id="svg-node"></svg> 156 <svg id="svg-node"></svg>
154 </html> 157 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-format-array-prototype-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698