зеркало из https://github.com/mozilla/pjs.git
Tests for bug 536437
--HG-- extra : transplant_source : %5D.%3C%D9%90%C6%A9B%5E%F8O4%F5e%95%0AO%BC8%27
This commit is contained in:
Родитель
eb6acdeeba
Коммит
302ba7a683
|
@ -51,5 +51,36 @@
|
|||
is(r, 1, "Shouldn't load invalid URI");
|
||||
testDone();
|
||||
}), "streamTest GET invalid URL");
|
||||
|
||||
ok(p.streamTest("javascript:'Hello';", false, null,
|
||||
function(r, t) {
|
||||
is(r, 0, "GET javascript: URI");
|
||||
is(t, "Hello", "GET javascript: URI correct");
|
||||
testDone();
|
||||
}), "streamTest GET javascript: URI");
|
||||
|
||||
/*
|
||||
* XXX/cjones: disabled for now because it appears to be hard to make
|
||||
* mochitest ignore the malformed javascript
|
||||
|
||||
ok(!p.streamTest("javascript:syntax##$&*@error-*", false, null,
|
||||
function(r, t) {
|
||||
is(r, 1, "Shouldn't load invalid javascript: URI");
|
||||
testDone();
|
||||
}), "streamTest GET bad javascript: URI");
|
||||
*/
|
||||
|
||||
ok(p.streamTest("data:text/plain,World", false, null,
|
||||
function(r, t) {
|
||||
is(r, 0, "GET data: URI");
|
||||
is(t, "World", "GET data: URI correct");
|
||||
testDone();
|
||||
}), "streamTest GET data: URI");
|
||||
|
||||
ok(!p.streamTest("data:malformed?", false, null,
|
||||
function(r, t) {
|
||||
is(r, 1, "Shouldn't load invalid data: URI");
|
||||
testDone();
|
||||
}), "streamTest GET bad data: URI");
|
||||
}
|
||||
</script>
|
||||
|
|
Загрузка…
Ссылка в новой задаче