| Index: LayoutTests/imported/web-platform-tests/html-imports/document/resources/test-in-import.html
|
| diff --git a/LayoutTests/imported/web-platform-tests/html-imports/document/resources/test-in-import.html b/LayoutTests/imported/web-platform-tests/html-imports/document/resources/test-in-import.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fc25e85a406004bb27fbc19099a97d4a0e1bd299
|
| --- /dev/null
|
| +++ b/LayoutTests/imported/web-platform-tests/html-imports/document/resources/test-in-import.html
|
| @@ -0,0 +1,13 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<script>
|
| +test(function() {
|
| + var doc = document.currentScript.ownerDocument;
|
| + assert_throws('INVALID_STATE_ERR', function() { doc.open(); }, 'document.open()');
|
| + assert_throws('INVALID_STATE_ERR', function() { doc.write('Hello'); }, 'document.write()');
|
| + assert_throws('INVALID_STATE_ERR', function() { doc.open(); }, 'document.close()');
|
| +}, 'Throws an InvalidStateError exception if the Document is an import: From an import');
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|