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

Unified Diff: LayoutTests/fast/dom/MicroData/itemvalue-throws-excpetion-onsetting-002.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/itemvalue-throws-excpetion-onsetting-002.html
diff --git a/LayoutTests/fast/dom/MicroData/itemvalue-throws-excpetion-onsetting-002.html b/LayoutTests/fast/dom/MicroData/itemvalue-throws-excpetion-onsetting-002.html
deleted file mode 100644
index bef4c00ff562cd165a0a5055ba43843d8e29c2a5..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/MicroData/itemvalue-throws-excpetion-onsetting-002.html
+++ /dev/null
@@ -1,46 +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 test ensures that writing to itemValue must throw an INVALID_ACCESS_ERR error if the element does not have an itemprop attribute.</p>
-<div id="console"></div>
-<script>
-var exceptionCode;
-function runTest(tagName)
-{
- debug("Testing '" + tagName + "' element's behavior.");
- exceptionCode = undefined;
- testElement = createElement(tagName, {content: 'testContent'});
- try {
- testElement.itemValue = 'test'
- } catch (exception) {
- exceptionCode = exception.code;
- }
-
- if (exceptionCode == DOMException.INVALID_ACCESS_ERR)
- debug("TEST SUCCEEDED: Got the expected exception (" + exceptionCode + ") INVALID_ACCESS_ERR.<br>");
- else
- debug("TEST FAILED: Should've thrown INVALID_ACCESS_ERR but threw " + exceptionCode + ".<br>");
-}
-
-runTest('meta');
-runTest('audio');
-runTest('embed');
-runTest('iframe');
-runTest('img');
-runTest('source');
-runTest('track');
-runTest('video');
-runTest('a');
-runTest('area');
-runTest('link');
-runTest('object');
-runTest('div');
-
-</script>
-<script src="../../js/resources/js-test-post.js"></script>
-</body>
-</html

Powered by Google App Engine
This is Rietveld 408576698