Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/webstorage/missing_arguments.html

Issue 2018873002: Fix testharness paths in imported/wpt/* except dom and html. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>WebStorage Test: missing arguments</title> 4 <title>WebStorage Test: missing arguments</title>
5 <script src="../../../resources/testharness.js"></script> 5 <script src="/resources/testharness.js"></script>
6 <script src="../../../resources/testharnessreport.js"></script> 6 <script src="/resources/testharnessreport.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <h1>missing_arguments</h1> 9 <h1>missing_arguments</h1>
10 <div id="log"></div> 10 <div id="log"></div>
11 <script> 11 <script>
12 var tests = [ 12 var tests = [
13 function() { localStorage.key(); }, 13 function() { localStorage.key(); },
14 function() { localStorage.getItem(); }, 14 function() { localStorage.getItem(); },
15 function() { localStorage.setItem(); }, 15 function() { localStorage.setItem(); },
16 function() { localStorage.setItem("a"); }, 16 function() { localStorage.setItem("a"); },
17 function() { localStorage.removeItem(); }, 17 function() { localStorage.removeItem(); },
18 function() { sessionStorage.key(); }, 18 function() { sessionStorage.key(); },
19 function() { sessionStorage.getItem(); }, 19 function() { sessionStorage.getItem(); },
20 function() { sessionStorage.setItem(); }, 20 function() { sessionStorage.setItem(); },
21 function() { sessionStorage.setItem("a"); }, 21 function() { sessionStorage.setItem("a"); },
22 function() { sessionStorage.removeItem(); }, 22 function() { sessionStorage.removeItem(); },
23 function() { new StorageEvent(); } 23 function() { new StorageEvent(); }
24 ]; 24 ];
25 tests.forEach(function(fun) { 25 tests.forEach(function(fun) {
26 test(function() { 26 test(function() {
27 assert_throws(new TypeError(), fun); 27 assert_throws(new TypeError(), fun);
28 }, "Should throw TypeError for " + format_value(fun) + "."); 28 }, "Should throw TypeError for " + format_value(fun) + ".");
29 }); 29 });
30 </script> 30 </script>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698