summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/nodes/Document-contentType/contentType/contenttype_txt.html
blob: f40f641fb02e7d5918876b2ec17bb96d0a83a51a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<title>TXT document.contentType === 'text/plain'</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function() {
  var iframe = document.createElement('iframe');
  iframe.addEventListener('load', this.step_func_done(function() {
    assert_equals(iframe.contentDocument.contentType, "text/plain");
  }), false);
  iframe.src = "../resources/blob.txt";
  document.body.appendChild(iframe);
});
</script>