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

Unified Diff: LayoutTests/fast/dom/MicroData/itemref-add-remove-tokens.html

Issue 14028014: Remove MicroData implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also delete all the tests Created 7 years, 8 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: LayoutTests/fast/dom/MicroData/itemref-add-remove-tokens.html
diff --git a/LayoutTests/fast/dom/MicroData/itemref-add-remove-tokens.html b/LayoutTests/fast/dom/MicroData/itemref-add-remove-tokens.html
deleted file mode 100644
index ec0ecca1c2a1ef59c9befb322399ecefa23485b7..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/MicroData/itemref-add-remove-tokens.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../js/resources/js-test-pre.js"></script>
-<script src="resources/microdata-common.js"></script>
-</head>
-<body>
-<p>This tests that itemRef attribute must update correctly when token have been added or removed.</p>
-<div id="console"></div>
-<script>
-var element = createElement('div', {});
-
-debug("itemRef.add must reflect correctly.");
-element.itemRef.add('foo');
-element.itemRef.add('FOO');
-shouldBeTrue("element.itemRef.length == 2");
-shouldBe("element.itemRef.toString()", "'foo FOO'");
-shouldBe("element.itemRef[0]", "'foo'");
-shouldBe("element.itemRef[1]", "'FOO'");
-
-debug("<br>itemRef.add must not make any changes if an existing token is added.");
-element.itemRef.add('foo');
-shouldBeTrue("element.itemRef.length == 2");
-shouldBe("element.itemRef.toString()", "'foo FOO'");
-
-debug("<br>itemRef.remove must reflect correctly.");
-element.itemRef.remove('foo');
-shouldBeTrue("element.itemRef.length == 1");
-shouldBe("element.itemRef.toString()", "'FOO'");
-shouldBeFalse("element.itemRef.contains('foo')");
-
-debug("<br>itemRef.remove must not make any changes if a non-existing token is removed.");
-element.itemRef.remove('foo');
-shouldBeTrue("element.itemRef.length == 1");
-shouldBe("element.itemRef.toString()", "'FOO'");
-shouldBeFalse("element.itemRef.contains('foo')");
-
-debug("<br>itemRef.length must be 0 when all tokens are removed.");
-element.itemRef.remove('FOO');
-shouldBeTrue("element.itemRef.length == 0");
-shouldBeFalse("element.itemRef.contains('foo')");
-shouldBeFalse("element.itemRef.contains('FOO')");
-
-</script>
-<script src="../../js/resources/js-test-post.js"></script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698