зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1222008 - P9: Expected failure for loading a same origin XML Document but being responded with a cors response. r=bkelly
Modify test to be expected failure to load cross origin XML Document via a same origin request. --HG-- extra : rebase_source : 1fd3e699447436b47205537009b5ba23bbab3278
This commit is contained in:
Родитель
dd03a5c40a
Коммит
a70276a99c
|
@ -140,7 +140,8 @@
|
|||
xmlDoc.load('load_cross_origin_xml_document_cors.xml');
|
||||
xmlDoc.onload = function(evt) {
|
||||
var content = new XMLSerializer().serializeToString(evt.target);
|
||||
my_ok(!content.includes('parsererror'), "Load CORS cross origin XML Document should be allowed");
|
||||
// issue: https://github.com/whatwg/fetch/issues/629
|
||||
my_ok(content.includes('parsererror'), "Load CORS cross origin XML Document should not be allowed");
|
||||
finish();
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче