author | Anne van Kesteren <annevk@annevk.nl> |
Thu, 03 May 2018 22:28:01 +0000 | |
changeset 417329 | f81ef612d2951c8308e58ed546f29a5eb423e95a |
parent 417328 | 485c8206b47c1bfc373b406e7a64bfbeeb7b4817 |
child 417330 | b83499fcfb6339c99b18654ecf957e180306218f |
push id | 103033 |
push user | james@hoppipolla.co.uk |
push date | Tue, 08 May 2018 14:56:44 +0000 |
treeherder | mozilla-inbound@8240a8e38db8 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | testonly |
bugs | 1458511, 10756 |
milestone | 62.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -277622,16 +277622,21 @@ {} ] ], "html/dom/dynamic-markup-insertion/opening-the-input-stream/document.open-03-frame.html": [ [ {} ] ], + "html/dom/dynamic-markup-insertion/opening-the-input-stream/resources/encoding-frame.html": [ + [ + {} + ] + ], "html/dom/dynamic-markup-insertion/opening-the-input-stream/type-argument-plaintext-subframe.txt": [ [ {} ] ], "html/dom/elements-embedded.js": [ [ {} @@ -333535,16 +333540,22 @@ ] ], "html/dom/dynamic-markup-insertion/opening-the-input-stream/document.open-03.html": [ [ "/html/dom/dynamic-markup-insertion/opening-the-input-stream/document.open-03.html", {} ] ], + "html/dom/dynamic-markup-insertion/opening-the-input-stream/encoding.window.js": [ + [ + "/html/dom/dynamic-markup-insertion/opening-the-input-stream/encoding.window.html", + {} + ] + ], "html/dom/dynamic-markup-insertion/opening-the-input-stream/event-listeners.window.js": [ [ "/html/dom/dynamic-markup-insertion/opening-the-input-stream/event-listeners.window.html", {} ] ], "html/dom/dynamic-markup-insertion/opening-the-input-stream/mutation-events.window.js": [ [ @@ -564426,24 +564437,32 @@ "html/dom/dynamic-markup-insertion/opening-the-input-stream/document.open-03-frame.html": [ "bcc6a14a9c3d116d95e72d3f057d0cd7cbffd2cb", "support" ], "html/dom/dynamic-markup-insertion/opening-the-input-stream/document.open-03.html": [ "a2a5acc9dfe53c7482eeaa4be3a4819238f8e120", "testharness" ], + "html/dom/dynamic-markup-insertion/opening-the-input-stream/encoding.window.js": [ + "b021d6fcc38925ddf39309e21716c5be37791247", + "testharness" + ], "html/dom/dynamic-markup-insertion/opening-the-input-stream/event-listeners.window.js": [ "ccf357a8081b99de1d85e05196145e83b3de2ab5", "testharness" ], "html/dom/dynamic-markup-insertion/opening-the-input-stream/mutation-events.window.js": [ "1e1c656e1d19c9c459faf16327e099a4c9e13872", "testharness" ], + "html/dom/dynamic-markup-insertion/opening-the-input-stream/resources/encoding-frame.html": [ + "1d8ae9f75fe05343c1858caad637c9f7602c9f28", + "support" + ], "html/dom/dynamic-markup-insertion/opening-the-input-stream/type-argument-plaintext-subframe.txt": [ "8d06cea05d408d70c59b1dbc5df3bda374d869a4", "support" ], "html/dom/dynamic-markup-insertion/opening-the-input-stream/type-argument-plaintext.window.js": [ "1f440ff93300a0ab715982feb067dd3162c8fce9", "testharness" ],
new file mode 100644 --- /dev/null +++ b/testing/web-platform/tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/encoding.window.js @@ -0,0 +1,12 @@ +async_test(t => { + const frame = document.body.appendChild(document.createElement("iframe")); + frame.src = "resources/encoding-frame.html"; + frame.onload = t.step_func_done(t => { + // Using toLowerCase() to avoid an Edge bug + assert_equals(frame.contentDocument.characterSet.toLowerCase(), "shift_jis", "precondition"); + frame.contentDocument.open(); + assert_equals(frame.contentDocument.characterSet.toLowerCase(), "shift_jis", "actual test"); + frame.contentDocument.close(); + assert_equals(frame.contentDocument.characterSet.toLowerCase(), "shift_jis", "might as well"); + }); +}, "doucment.open() and the document's encoding");