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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/storage_functions_not_overwritten.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_functions_not_overwritten.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/storage_functions_not_overwritten.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/storage_functions_not_overwritten.html
deleted file mode 100644
index a9185e7935ce48767506531c500975633c73cd3f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/webstorage/storage_functions_not_overwritten.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<title>WebStorage Test: Storage - set key with the same name as storage function</title>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-["localStorage", "sessionStorage"].forEach(function(name) {
- test(function() {
- var storage = window[name];
- storage.clear();
-
- runTest();
- function doWedgeThySelf() {
- storage.setItem("clear", "almost");
- storage.setItem("key", "too");
- storage.setItem("getItem", "funny");
- storage.setItem("removeItem", "to");
- storage.setItem("length", "be");
- storage.setItem("setItem", "true");
- }
-
- function runTest() {
- doWedgeThySelf();
-
- assert_equals(storage.getItem('clear'), "almost");
- assert_equals(storage.getItem('key'), "too");
- assert_equals(storage.getItem('getItem'), "funny");
- assert_equals(storage.getItem('removeItem'), "to");
- assert_equals(storage.getItem('length'), "be");
- assert_equals(storage.getItem('setItem'), "true");
-
- // Test to see if an exception is thrown for any of the built in
- // functions.
- storage.setItem("test", "123");
- storage.key(0);
- storage.getItem("test");
- storage.removeItem("test");
- storage.clear();
- assert_equals(storage.length, 0);
- }
-
- }, name + " should be not rendered unusable by setting a key with the same name as a storage function such that the function is hidden");
-});
-</script>
-</body>
-</html>
-

Powered by Google App Engine
This is Rietveld 408576698