author | Ms2ger <ms2ger@gmail.com> |
Fri, 18 May 2012 10:29:38 +0200 | |
changeset 94304 | ea230e0e5b3841701816b35acf1f237c216dd90f |
parent 94303 | 171b486837e86c52ea0ec10c023002030400e1d9 |
child 94305 | 75a6378de201328535464c65909af0a40ac2434a |
push id | 22706 |
push user | Ms2ger@gmail.com |
push date | Fri, 18 May 2012 08:31:47 +0000 |
treeherder | mozilla-central@4b74c82dd5ab [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
milestone | 15.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/dom/tests/mochitest/localstorage/test_keySync.html +++ b/dom/tests/mochitest/localstorage/test_keySync.html @@ -2,17 +2,17 @@ <head> <title>localStorage equal origins</title> <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> <script type="text/javascript" src="interOriginTest2.js"></script> <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> <!-- - This test loads two frames from the same origin, clears in one frame, + This test loads two frames from the same origin, clears in one frame, sets a single key in another and then checks key(0) in the first frame. --> <script type="text/javascript"> function startTest() { masterFrameOrigin = "http://example.org:80";
--- a/dom/tests/mochitest/localstorage/test_storageConstructor.html +++ b/dom/tests/mochitest/localstorage/test_storageConstructor.html @@ -1,36 +1,36 @@ -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<title>localStorage different port numbers</title> - -<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> -<script type="text/javascript" src="interOriginTest2.js"></script> -<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> - -<script type="text/javascript"> - -function startTest() -{ - var functionCalled = false; - is(localStorage instanceof Storage, true, "localStorage is instance of Storage"); - Storage.prototype.exists = function(key) { - functionCalled = true; - return this.getItem(key) != null; - } - localStorage.setItem("test_prototype", "value"); - is(functionCalled, false, "Overridden function not called"); - is(localStorage.exists("test_prototype"), true, "Prototype overridden"); - is(functionCalled, true, "Overridden function called"); - localStorage.clear(); - - SimpleTest.finish(); -} - -SimpleTest.waitForExplicitFinish(); - -</script> - -</head> - -<body onload="startTest();"> -</body> -</html> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>localStorage different port numbers</title> + +<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> +<script type="text/javascript" src="interOriginTest2.js"></script> +<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> + +<script type="text/javascript"> + +function startTest() +{ + var functionCalled = false; + is(localStorage instanceof Storage, true, "localStorage is instance of Storage"); + Storage.prototype.exists = function(key) { + functionCalled = true; + return this.getItem(key) != null; + } + localStorage.setItem("test_prototype", "value"); + is(functionCalled, false, "Overridden function not called"); + is(localStorage.exists("test_prototype"), true, "Prototype overridden"); + is(functionCalled, true, "Overridden function called"); + localStorage.clear(); + + SimpleTest.finish(); +} + +SimpleTest.waitForExplicitFinish(); + +</script> + +</head> + +<body onload="startTest();"> +</body> +</html>