1 description('Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=33057">bug 33057</a>: typeof(xhr.responseText) != "string" on Windows.</p>');
3 var r
= new XMLHttpRequest
;
4 r
.open("GET", "webcore-string-comparison.html", false);
7 shouldBe('typeof(r.responseText) == "string"', 'true');
8 shouldBe('typeof(r.responseText) === "string"', 'true');
9 shouldBe('typeof(r.responseText) != "string"', 'false');
10 shouldBe('typeof(r.responseText) !== "string"', 'false');
11 shouldBe('"" + typeof(r.responseText)', '"string"');
12 shouldBe('typeof(r.responseText) + ""', '"string"');
13 shouldBe('String(typeof(r.responseText))', '"string"');
14 shouldBe('String(typeof(r.responseText))', 'typeof(r.responseText)');