mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
<!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 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue