Skip to content

Commit

Permalink
Test the 'unusual behaviors' of document.all
Browse files Browse the repository at this point in the history
See the spec for more information
  • Loading branch information
frewsxcv committed Aug 26, 2015
1 parent 4600b7d commit e079811
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!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_equals(Boolean(document.all), false);
assert_true(document.all == undefined);
assert_true(document.all == null);
assert_true(document.all !== undefined);
assert_true(document.all !== null);
assert_equals(typeof document.all, "undefined");
}, "'unusual behaviors'")
</script>

0 comments on commit e079811

Please sign in to comment.