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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/obsolete/requirements-for-implementations/other-elements-attributes-and-apis/document-all.html

Issue 1344233004: update-w3c-deps import using blink 41e709df01f60521d3c9786d319cdc1690633151: (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated -expected Created 5 years, 3 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 <!DOCTYPE html>
2 <title>document.all</title>
3 <link rel="author" title="Corey Farwell" href="mailto:coreyf@rwell.org">
4 <link rel="help" href="https://html.spec.whatwg.org/multipage/obsolete.html#dom- document-all">
5 <script src="../../../../../../resources/testharness.js"></script>
6 <script src="../../../../../../resources/testharnessreport.js"></script>
7 <div id="log"></div>
8 <script>
9 test(function () {
10 assert_false(Boolean(document.all));
11
12 assert_true(document.all == undefined);
13 assert_true(document.all == null);
14 assert_false(document.all != undefined);
15 assert_false(document.all != null);
16
17 assert_true(document.all !== undefined);
18 assert_true(document.all !== null);
19 assert_false(document.all === undefined);
20 assert_false(document.all === null);
21
22 assert_equals(typeof document.all, "undefined");
23
24 if (document.all) { assert_true(false); }
25
26 if (!document.all) {}
27 else { assert_true(false); }
28 }, "'unusual behaviors' of document.all")
29
30 test(function() {
31 var all = document.all;
32
33 assert_false(Boolean(all));
34
35 assert_true(all == undefined);
36 assert_true(all == null);
37 assert_false(all != undefined);
38 assert_false(all != null);
39
40 assert_true(all !== undefined);
41 assert_true(all !== null);
42 assert_false(all === undefined);
43 assert_false(all === null);
44
45 assert_equals(typeof all, "undefined");
46
47 if (all) { assert_true(false); }
48
49 if (!all) {}
50 else { assert_true(false); }
51 }, "'unusual behaviors' of document.all with assignment")
52 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698