Bug 1352572 - Add negative test for NPN_PostURLNotify(); r=bsmedberg

Note that this test never actually fails short of passing file parameter to
NPN_PostURLNotify actually causing the browser to crash. It can't distinguish
between the case when file is working or not.

MozReview-Commit-ID: 1G590ZWpHsE

--HG--
extra : rebase_source : c294bc109b893c81b6ee4c3114bb039eab77af08
This commit is contained in:
Lie Ryan 2017-04-11 13:27:50 +00:00
Родитель d52bc4b27e
Коммит 32b857541b
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -85,6 +85,15 @@
}, null, true), "streamTest GET bad data: URI");
ok(!p.postFileToURLTest("post.sjs"), "postFileToURLTest POST a file");
ok(!p.streamTest("post.sjs", true, "non-existent-file",
function(r, t) {
ok(false, "Shouldn't get write callback from file post");
}, function(r, t) {
ok(false, "Shouldn't get notify callback from file post");
}, function(r, t) {
ok(false, "Shouldn't get redirect callback from file post");
}, true, true), "streamTest POST a file");
}
</script>