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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Document-contentType/contentType/contenttype_javascripturi.html

Issue 1529523002: Import dom/ from web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak W3CImportExpectations Created 5 years 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
(Empty)
1 <!DOCTYPE html>
2 <title>Javascript URI document.contentType === 'text/html'</title>
3 <script src="../../../../../../resources/testharness.js"></script>
4 <script src="../../../../../../resources/testharnessreport.js"></script>
5 <div id=log></div>
6 <iframe style="display:none"></iframe>
7 <script>
8 async_test(function() {
9 var iframe = document.getElementsByTagName('iframe')[0];
10 iframe.addEventListener('load', this.step_func_done(function() {
11 assert_equals(iframe.contentDocument.contentType, "text/html");
12 assert_equals(iframe.contentDocument.documentElement.textContent, "text/html ");
13 }), false);
14 iframe.src = "javascript:document.contentType";
15 });
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698