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:
Tom Tung 2017-11-29 17:06:33 +08:00
Родитель dd03a5c40a
Коммит a70276a99c
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -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();
};