diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/workers/semantics/xhr/002.js')
-rw-r--r-- | tests/wpt/web-platform-tests/workers/semantics/xhr/002.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/workers/semantics/xhr/002.js b/tests/wpt/web-platform-tests/workers/semantics/xhr/002.js new file mode 100644 index 00000000000..68d7e91d451 --- /dev/null +++ b/tests/wpt/web-platform-tests/workers/semantics/xhr/002.js @@ -0,0 +1,9 @@ +var xhr = new XMLHttpRequest(); +var log = ''; +xhr.open('GET', '001-1.xml', false); +xhr.send(); +if (xhr.responseXML != null) + log += 'responseXML was not null. '; +if (xhr.responseText != '<x>foo</x>') + log += 'responseText was ' + this.responseText + ', expected <x>foo</x>. '; +postMessage(log);
\ No newline at end of file |