Permalink
Switch branches/tags
merge_pr_11170 merge_pr_11168 merge_pr_11163 merge_pr_11162 merge_pr_11160 merge_pr_11159 merge_pr_11157 merge_pr_11153 merge_pr_11152 merge_pr_11148 merge_pr_11147 merge_pr_11143 merge_pr_11142 merge_pr_11141 merge_pr_11140 merge_pr_11139 merge_pr_11138 merge_pr_11137 merge_pr_11136 merge_pr_11135 merge_pr_11134 merge_pr_11133 merge_pr_11130 merge_pr_11129 merge_pr_11127 merge_pr_11126 merge_pr_11124 merge_pr_11119 merge_pr_11118 merge_pr_11116 merge_pr_11114 merge_pr_11113 merge_pr_11111 merge_pr_11110 merge_pr_11107 merge_pr_11104 merge_pr_11102 merge_pr_11100 merge_pr_11099 merge_pr_11098 merge_pr_11097 merge_pr_11096 merge_pr_11095 merge_pr_11094 merge_pr_11093 merge_pr_11091 merge_pr_11089 merge_pr_11088 merge_pr_11087 merge_pr_11086 merge_pr_11083 merge_pr_11079 merge_pr_11077 merge_pr_11076 merge_pr_11074 merge_pr_11071 merge_pr_11070 merge_pr_11068 merge_pr_11067 merge_pr_11065 merge_pr_11064 merge_pr_11063 merge_pr_11062 merge_pr_11061 merge_pr_11060 merge_pr_11059 merge_pr_11058 merge_pr_11056 merge_pr_11055 merge_pr_11053 merge_pr_11052 merge_pr_11050 merge_pr_11047 merge_pr_11045 merge_pr_11042 merge_pr_11041 merge_pr_11040 merge_pr_11038 merge_pr_11036 merge_pr_11035 merge_pr_11033 merge_pr_11032 merge_pr_11031 merge_pr_11030 merge_pr_11028 merge_pr_11027 merge_pr_11026 merge_pr_11022 merge_pr_11021 merge_pr_11020 merge_pr_11019 merge_pr_11018 merge_pr_11017 merge_pr_11014 merge_pr_11013 merge_pr_11011 merge_pr_11010 merge_pr_11008 merge_pr_11004 merge_pr_11003
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (32 sloc) 1.1 KB
<!DOCTYPE HTML>
<html>
<head>
<title>WebStorage Test: missing arguments</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<h1>missing_arguments</h1>
<div id="log"></div>
<script>
var tests = [
function() { localStorage.key(); },
function() { localStorage.getItem(); },
function() { localStorage.setItem(); },
function() { localStorage.setItem("a"); },
function() { localStorage.removeItem(); },
function() { sessionStorage.key(); },
function() { sessionStorage.getItem(); },
function() { sessionStorage.setItem(); },
function() { sessionStorage.setItem("a"); },
function() { sessionStorage.removeItem(); },
function() { new StorageEvent(); }
];
tests.forEach(function(fun) {
test(function() {
assert_throws(new TypeError(), fun);
}, "Should throw TypeError for " + format_value(fun) + ".");
});
</script>
</body>
</html>