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

Side by Side Diff: LayoutTests/inspector/map.html

Issue 12208136: Merge 142128 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 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 | LayoutTests/inspector/map-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 type="text/javascript"> 4 <script type="text/javascript">
5 5
6 var test = function() 6 var test = function()
7 { 7 {
8 function dumpMaps(map1, map2, key1, key2) 8 function dumpMaps(map1, map2, key1, key2)
9 { 9 {
10 InspectorTest.addResult("Dumping maps:"); 10 InspectorTest.addResult("Dumping maps:");
11 InspectorTest.addResult(" First map:"); 11 InspectorTest.addResult(" First map:");
12 InspectorTest.addResult(" key1 : " + map1.get(key1)); 12 InspectorTest.addResult(" key1 : " + map1.get(key1));
13 InspectorTest.addResult(" key2 : " + map1.get(key2)); 13 InspectorTest.addResult(" key2 : " + map1.get(key2));
14 InspectorTest.addResult(" size : " + map1.size());
14 InspectorTest.addResult(" Second map:"); 15 InspectorTest.addResult(" Second map:");
15 InspectorTest.addResult(" key1 : " + map2.get(key1)); 16 InspectorTest.addResult(" key1 : " + map2.get(key1));
16 InspectorTest.addResult(" key2 : " + map2.get(key2)); 17 InspectorTest.addResult(" key2 : " + map2.get(key2));
18 InspectorTest.addResult(" size : " + map2.size());
17 InspectorTest.addResult(""); 19 InspectorTest.addResult("");
18 } 20 }
19 21
20 var key1 = {}; 22 var key1 = {};
21 var key2 = {}; 23 var key2 = {};
22 var value1 = 1; 24 var value1 = 1;
23 var value2 = 2; 25 var value2 = 2;
24 var map1 = new Map(); 26 var map1 = new Map();
25 var map2 = new Map(); 27 var map2 = new Map();
26 28
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 InspectorTest.completeTest(); 64 InspectorTest.completeTest();
63 } 65 }
64 66
65 </script> 67 </script>
66 </head> 68 </head>
67 <body onload="runTest()"> 69 <body onload="runTest()">
68 <p>Tests Map class.</p> 70 <p>Tests Map class.</p>
69 <a href="https://bugs.webkit.org/show_bug.cgi?id=74084">Bug 74084</a> 71 <a href="https://bugs.webkit.org/show_bug.cgi?id=74084">Bug 74084</a>
70 </body> 72 </body>
71 </html> 73 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/map-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698