Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / utilities.html
index 8ca42f4..4283c81 100644 (file)
@@ -415,6 +415,17 @@ function test()
                 assertHelper(key2IndexA < key2IndexB, "stable order", i, a, b);
             }
             next();
+        },
+
+        function stringHashTest(next)
+        {
+            var stringA = Array(10000).join(" ");
+            var stringB = stringA + " ";
+            var hashA = stringA.hashCode();
+            InspectorTest.assertTrue(hashA !== stringB.hashCode());
+            InspectorTest.assertTrue(isFinite(hashA));
+            InspectorTest.assertTrue(hashA + 1 !== hashA);
+            next();
         }
 
     ]);