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

Unified Diff: LayoutTests/imported/web-platform-tests/html-imports/document/document-method-changes.html

Issue 560893005: First checked-in import of the W3C's test suites. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add new expectations for newly failing w3c tests Created 6 years, 3 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/imported/web-platform-tests/html-imports/document/document-method-changes.html
diff --git a/LayoutTests/imported/web-platform-tests/html-imports/document/document-method-changes.html b/LayoutTests/imported/web-platform-tests/html-imports/document/document-method-changes.html
new file mode 100644
index 0000000000000000000000000000000000000000..ac87ff1902b0492ddc68ada9f561c8c520247f9b
--- /dev/null
+++ b/LayoutTests/imported/web-platform-tests/html-imports/document/document-method-changes.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>The import attribute</title>
+<link rel="help" href="http://w3c.github.io/webcomponents/spec/imports/#interface-import">
+<script src="../../../../resources/testharness.js"></script>
+<script src="../../../../resources/testharnessreport.js"></script>
+<link rel="stylesheet" href="../../../../resources/testharness.css">
+
+<link id="importLink" rel="import" href="resources/body-only.html">
+<link rel="import" href="resources/test-in-import.html">
+</head>
+<body>
+<div id="log"></div>
+<script>
+test(function() {
+ assert_throws('INVALID_STATE_ERR', function() { importLink.import.open(); }, 'document.open()');
+ assert_throws('INVALID_STATE_ERR', function() { importLink.import.write('Hello'); }, 'document.write()');
+ assert_throws('INVALID_STATE_ERR', function() { importLink.import.open(); }, 'document.close()');
+}, 'Throws an InvalidStateError exception if the Document is an import: From the master document');
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698