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

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

Issue 82553008: DevTools: Show -0 for negative zero in console. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 7 years 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
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-dir-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 <script> 5 <script>
6 6
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);
11 console.dir(document.evaluate("//head", document, null, XPathResult.ANY_TYPE , null)); 11 console.dir(document.evaluate("//head", document, null, XPathResult.ANY_TYPE , null));
12 12
13 // Object with properties containing whitespaces 13 // Object with properties containing whitespaces
14 var obj = { $foo5_: 0 }; 14 var obj = { $foo5_: 0 };
15 obj[" a b "] = " a b "; 15 obj[" a b "] = " a b ";
16 obj["c d"] = "c d"; 16 obj["c d"] = "c d";
17 obj[""] = ""; 17 obj[""] = "";
18 obj[" "] = " "; 18 obj[" "] = " ";
19 obj["a\n\nb\nc"] = "a\n\nb\nc"; 19 obj["a\n\nb\nc"] = "a\n\nb\nc";
20 obj["negZero"] = -0;
20 console.dir(obj); 21 console.dir(obj);
21 22
22 runTest(); 23 runTest();
23 } 24 }
24 25
25 function test() 26 function test()
26 { 27 {
27 InspectorTest.expandConsoleMessages(dumpConsoleMessages); 28 InspectorTest.expandConsoleMessages(dumpConsoleMessages);
28 29
29 function dumpConsoleMessages() 30 function dumpConsoleMessages()
30 { 31 {
31 InspectorTest.addResult(InspectorTest.textContentWithLineBreaks(WebInspe ctor.consoleView.topGroup.element)); 32 InspectorTest.addResult(InspectorTest.textContentWithLineBreaks(WebInspe ctor.consoleView.topGroup.element));
32 InspectorTest.completeTest(); 33 InspectorTest.completeTest();
33 } 34 }
34 } 35 }
35 36
36 </script> 37 </script>
37 </head> 38 </head>
38 39
39 <body onload="onload()"> 40 <body onload="onload()">
40 <p> 41 <p>
41 Tests that console logging dumps proper messages. 42 Tests that console logging dumps proper messages.
42 </p> 43 </p>
43 44
44 </body> 45 </body>
45 </html> 46 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-dir-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698