Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/workers/semantics/xhr/001.html

Issue 2418853003: Worker: Import "imported/wpt/workers" tests (Retry) (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2 var xhr = new XMLHttpRequest();
3 var log = '';
4 xhr.onreadystatechange = function(e) {
5 if (this.readyState == 4) {
6 if (this.responseXML != null)
7 log += 'responseXML was not null. ';
8 if (this.responseText != '<x>foo</x>')
9 log += 'responseText was ' + this.responseText + ', expected <x>foo</x>. ' ;
10 postMessage(log);
11 }
12 }
13 xhr.open('GET', '001-1.xml', true);
14 xhr.send();
15 /*
16 -->
17 <!doctype html>
18 <title>async XMLHttpRequest in dedicated worker</title>
19 <script src="/resources/testharness.js"></script>
20 <script src="/resources/testharnessreport.js"></script>
21 <div id=log></div>
22 <script>
23 var t = async_test();
24 function runtest() {
25 var worker = new Worker('#');
26 worker.onmessage = this.step_func(function(e) {
27 assert_equals(e.data, '');
28 this.done();
29 });
30 }
31 </script>
32 <iframe src=001-1.xml onload="t.step(runtest);"></iframe>
33 <!--
34 */
35 //-->
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698