1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/localstorage/test_bug746272-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.5 +<head> 1.6 +<title>incomplete UTF-16 test</title> 1.7 +<meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> 1.8 + 1.9 +<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.10 +<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.11 + 1.12 +<script type="text/javascript"> 1.13 + 1.14 +function startTest() 1.15 +{ 1.16 + var test2 = localStorage.getItem("test2"); 1.17 + is(test2, "value2", "expected item"); 1.18 + 1.19 + localStorage.removeItem("test2"); 1.20 + is(localStorage.length, 2, "expected number of items"); 1.21 + 1.22 + SimpleTest.finish(); 1.23 +} 1.24 + 1.25 +SimpleTest.waitForExplicitFinish(); 1.26 + 1.27 +</script> 1.28 + 1.29 +</head> 1.30 + 1.31 +<body onload="startTest();"> 1.32 + 1.33 +</body> 1.34 +</html>