Bug 1380752 - Convert tests within intl/ to comply with new data: URI inheritance model. r=smaug

This commit is contained in:
Christoph Kerschbaumer 2017-07-14 12:17:41 +02:00
parent 17fb630efb
commit 1fe2489488
2 changed files with 3 additions and 3 deletions

View File

@ -24,14 +24,14 @@ SimpleTest.waitForExplicitFinish();
function test() {
var f = document.getElementsByTagName("iframe")[0];
f.onload = function() {
var href = f.contentWindow.location.href;
var href = SpecialPowers.wrap(f).contentWindow.location.href;
var index = href.indexOf("?foo=");
var actual = href.substring(index + 5);
var expected = "h%26%2340614%3Bi%26%23156267%3Bj%A1%40k%A3%E1l%A4%40m%C8%A4n%C8%CDo%FE%FEp%26%238365%3Bq%FDjr%F9%F9s%26%23128169%3Bt";
is(actual, expected, "Should have gotten the expected encode.");
SimpleTest.finish();
}
f.contentDocument.forms[0].submit();
SpecialPowers.wrap(f).contentDocument.forms[0].submit();
}
</script>
</pre>

View File

@ -89,7 +89,7 @@ function lastTest(frame)
function testDecoding(frame)
{
var iframeDoc = $(frame).contentDocument;
var iframeDoc = SpecialPowers.wrap($(frame)).contentDocument;
var outString = iframeDoc.getElementById("testPara").innerHTML;
is(outString, inString, "content decoded as " + frame);
}