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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html-imports/document/document-method-changes.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>The import attribute</title> 4 <title>The import attribute</title>
5 <link rel="help" href="http://w3c.github.io/webcomponents/spec/imports/#interfac e-import"> 5 <link rel="help" href="http://w3c.github.io/webcomponents/spec/imports/#interfac e-import">
6 <script src="../../../../resources/testharness.js"></script> 6 <script src="../../../../resources/testharness.js"></script>
7 <script src="../../../../resources/testharnessreport.js"></script> 7 <script src="../../../../resources/testharnessreport.js"></script>
8 8
9 <link id="importLink" rel="import" href="resources/body-only.html"> 9 <link id="importLink" rel="import" href="resources/body-only.html">
10 <link rel="import" href="resources/test-in-import.html"> 10 <link rel="import" href="resources/test-in-import.html">
11 </head> 11 </head>
12 <body> 12 <body>
13 <div id="log"></div> 13 <div id="log"></div>
14 <script> 14 <script>
15 test(function() { 15 test(function() {
16 assert_throws('INVALID_STATE_ERR', function() { importLink.import.open(); }, 'document.open()'); 16 assert_throws('INVALID_STATE_ERR', function() { importLink.import.open(); }, 'document.open()');
17 assert_throws('INVALID_STATE_ERR', function() { importLink.import.write('Hell o'); }, 'document.write()'); 17 assert_throws('INVALID_STATE_ERR', function() { importLink.import.write('Hell o'); }, 'document.write()');
18 assert_throws('INVALID_STATE_ERR', function() { importLink.import.open(); }, 'document.close()'); 18 assert_throws('INVALID_STATE_ERR', function() { importLink.import.open(); }, 'document.close()');
19 }, 'Throws an InvalidStateError exception if the Document is an import: From the master document'); 19 }, 'Throws an InvalidStateError exception if the Document is an import: From the master document');
20 </script> 20 </script>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698