mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision 71a0d51d14d8b0f1b53cda3a7d39ef8765164485
This commit is contained in:
parent
d504015496
commit
163009575a
290 changed files with 2928 additions and 972 deletions
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<title>document.all</title>
|
||||
<link rel="author" title="Corey Farwell" href="mailto:coreyf@rwell.org">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/obsolete.html#dom-document-all">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
test(function () {
|
||||
assert_false(Boolean(document.all));
|
||||
|
||||
assert_true(document.all == undefined);
|
||||
assert_true(document.all == null);
|
||||
assert_false(document.all != undefined);
|
||||
assert_false(document.all != null);
|
||||
|
||||
assert_true(document.all !== undefined);
|
||||
assert_true(document.all !== null);
|
||||
assert_false(document.all === undefined);
|
||||
assert_false(document.all === null);
|
||||
|
||||
assert_equals(typeof document.all, "undefined");
|
||||
|
||||
if (document.all) { assert_true(false); }
|
||||
|
||||
if (!document.all) {}
|
||||
else { assert_true(false); }
|
||||
}, "'unusual behaviors' of document.all")
|
||||
|
||||
test(function() {
|
||||
var all = document.all;
|
||||
|
||||
assert_false(Boolean(all));
|
||||
|
||||
assert_true(all == undefined);
|
||||
assert_true(all == null);
|
||||
assert_false(all != undefined);
|
||||
assert_false(all != null);
|
||||
|
||||
assert_true(all !== undefined);
|
||||
assert_true(all !== null);
|
||||
assert_false(all === undefined);
|
||||
assert_false(all === null);
|
||||
|
||||
assert_equals(typeof all, "undefined");
|
||||
|
||||
if (all) { assert_true(false); }
|
||||
|
||||
if (!all) {}
|
||||
else { assert_true(false); }
|
||||
}, "'unusual behaviors' of document.all with assignment")
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue