mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1380752 - Convert tests within intl/ to comply with new data: URI inheritance model. r=smaug
This commit is contained in:
parent
17fb630efb
commit
1fe2489488
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user