Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / content / test / data / indexeddb / common.js
index 2e12d44..1410a5a 100644 (file)
@@ -147,3 +147,9 @@ function indexedDBTest(upgradeCallback, optionalOpenCallback) {
       openRequest.onsuccess = optionalOpenCallback;
   };
 }
+
+if (typeof String.prototype.startsWith !== 'function') {
+  String.prototype.startsWith = function (str) {
+    return this.indexOf(str) === 0;
+  };
+}