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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/elements/global-attributes/dataset-delete.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (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/html/dom/elements/global-attributes/dataset-delete.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/elements/global-attributes/dataset-delete.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/elements/global-attributes/dataset-delete.html
deleted file mode 100644
index f070490722b8e3aeb1e36d70f04d5a9aac837fff..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/elements/global-attributes/dataset-delete.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Dataset - Delete</title>
- <script src="../../../../../../resources/testharness.js"></script>
- <script src="../../../../../../resources/testharnessreport.js"></script>
- </head>
- <body>
- <h1>Dataset - Delete</h1>
- <div id="log"></div>
- <script>
- function testDelete(attr, prop)
- {
- var d = document.createElement("div");
- d.setAttribute(attr, "value");
- delete d.dataset[prop];
- return d.hasAttribute(attr) === false && d.getAttribute(attr) != "value";
- }
-
- function testDeleteNoAdd(prop)
- {
- var d = document.createElement("div");
- delete d.dataset[prop];
- return true;
- }
-
- test(function() { assert_true(testDelete('data-foo', 'foo')); },
- "Deleting element.dataset['foo'] should also remove an attribute with name 'data-foo' should it exist.");
- test(function() { assert_true(testDelete('data-foo-bar', 'fooBar')); },
- "Deleting element.dataset['fooBar'] should also remove an attribute with name 'data-foo-bar' should it exist.");
- test(function() { assert_true(testDelete('data--', '-')); },
- "Deleting element.dataset['-'] should also remove an attribute with name 'data--' should it exist.");
- test(function() { assert_true(testDelete('data--foo', 'Foo')); },
- "Deleting element.dataset['Foo'] should also remove an attribute with name 'data--foo' should it exist.");
- test(function() { assert_true(testDeleteNoAdd('data--foo', '-foo')); },
- "Deleting element.dataset['-foo'] should also remove an attribute with name 'data--foo' should it exist.");
- test(function() { assert_true(testDelete('data---foo', '-Foo')); },
- "Deleting element.dataset['-Foo'] should also remove an attribute with name 'data---foo' should it exist.");
- test(function() { assert_true(testDelete('data-', '')); },
- "Deleting element.dataset[''] should also remove an attribute with name 'data-' should it exist.");
- test(function() { assert_true(testDelete('data-\xE0', '\xE0')); },
- "Deleting element.dataset['\xE0'] should also remove an attribute with name 'data-\xE0' should it exist.");
- test(function() { assert_true(testDeleteNoAdd('foo')); },
- "Deleting element.dataset['foo'] should not throw if even if the element does now have an attribute with the name data-foo.");
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698