Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / script-tests / webcore-string-comparison.js
blobd8df3344aff4b3df27bfaa564218a39ca19bb9a0
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);
5 r.send();
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)');