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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/storage_getitem.html

Issue 1979363002: Moved web-platform-tests to wpt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/storage_getitem.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/storage_getitem.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/storage_getitem.html
deleted file mode 100644
index 09f1eb74c406cd64c1eedf40b4c75bf469139b07..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/storage_getitem.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE HTML>
-<meta charset=utf-8>
-<title>WebStorage Test: Storage - getItem(key) and named getter</title>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<div id="log"></div>
-<script>
-["localStorage", "sessionStorage"].forEach(function(name) {
- test(function() {
- var storage = window[name];
- storage.clear();
- storage.setItem("name", "x");
- storage.setItem("undefined", "foo");
- storage.setItem("null", "bar");
- storage.setItem("", "baz");
-
- test(function() {
- assert_equals(storage.length, 4);
- }, "All items should be added to " + name + ".");
-
- test(function() {
- assert_equals(storage["unknown"], undefined, "storage['unknown']")
- assert_equals(storage["name"], "x", "storage['name']")
- assert_equals(storage["undefined"], "foo", "storage['undefined']")
- assert_equals(storage["null"], "bar", "storage['null']")
- assert_equals(storage[undefined], "foo", "storage[undefined]")
- assert_equals(storage[null], "bar", "storage[null]")
- assert_equals(storage[""], "baz", "storage['']")
- }, "Named access to " + name + " should be correct");
-
- test(function() {
- assert_equals(storage.getItem("unknown"), null, "storage.getItem('unknown')")
- assert_equals(storage.getItem("name"), "x", "storage.getItem('name')")
- assert_equals(storage.getItem("undefined"), "foo", "storage.getItem('undefined')")
- assert_equals(storage.getItem("null"), "bar", "storage.getItem('null')")
- assert_equals(storage.getItem(undefined), "foo", "storage.getItem(undefined)")
- assert_equals(storage.getItem(null), "bar", "storage.getItem(null)")
- assert_equals(storage.getItem(""), "baz", "storage.getItem('')")
- }, name + ".getItem should be correct")
- }, "Get value by getIten(key) and named access in " + name + ".");
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698