OLD | NEW |
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 InspectorTest.runTestSuite([ | 8 InspectorTest.runTestSuite([ |
9 function testMap(next) | 9 function testMap(next) |
10 { | 10 { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 map2.remove(key1); | 67 map2.remove(key1); |
68 dumpMaps(map1, map2, key1, key2); | 68 dumpMaps(map1, map2, key1, key2); |
69 next(); | 69 next(); |
70 }, | 70 }, |
71 | 71 |
72 function testSet(next) | 72 function testSet(next) |
73 { | 73 { |
74 function dumpSet(set, key1, key2) | 74 function dumpSet(set, key1, key2) |
75 { | 75 { |
76 InspectorTest.addResult(" key1 : " + set.hasItem(key1)); | 76 InspectorTest.addResult(" key1 : " + set.contains(key1)); |
77 InspectorTest.addResult(" key2 : " + set.hasItem(key2)); | 77 InspectorTest.addResult(" key2 : " + set.contains(key2)); |
78 InspectorTest.addResult(" size : " + set.size()); | 78 InspectorTest.addResult(" size : " + set.size()); |
79 } | 79 } |
80 | 80 |
81 function dumpSets(set1, set2, key1, key2) | 81 function dumpSets(set1, set2, key1, key2) |
82 { | 82 { |
83 InspectorTest.addResult("Dumping sets:"); | 83 InspectorTest.addResult("Dumping sets:"); |
84 InspectorTest.addResult(" First set:"); | 84 InspectorTest.addResult(" First set:"); |
85 dumpSet(set1, key1, key2) | 85 dumpSet(set1, key1, key2) |
86 InspectorTest.addResult(" Second set:"); | 86 InspectorTest.addResult(" Second set:"); |
87 dumpSet(set2, key1, key2) | 87 dumpSet(set2, key1, key2) |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 ]); | 180 ]); |
181 } | 181 } |
182 | 182 |
183 </script> | 183 </script> |
184 </head> | 184 </head> |
185 <body onload="runTest()"> | 185 <body onload="runTest()"> |
186 <p>Tests Map class.</p> | 186 <p>Tests Map class.</p> |
187 <a href="https://bugs.webkit.org/show_bug.cgi?id=74084">Bug 74084</a> | 187 <a href="https://bugs.webkit.org/show_bug.cgi?id=74084">Bug 74084</a> |
188 </body> | 188 </body> |
189 </html> | 189 </html> |
OLD | NEW |