Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / script-tests / document-all-triggers-masquerades-watchpoint.js
blobcf2d523e1c0d77830e5d9b824708399c4bf74b56
1 description("Test to make sure that document.all works properly with the DFG");
3 var f = function(a, b) {
4 if (a == null) {
5 return 0;
7 if (b == null) {
8 return a;
10 return a + b;
13 for (var i = 1; i < 100; i++) {
14 shouldBe("f(2, 42)", "44");
17 var test = {};
18 if (test == document.all) {
19 shouldBeTrue("false");
20 } else if (undefined == document.all) {
21 debug("document.all was undefined");
22 for (var i = 1; i < 1000; i++) {
23 shouldBe("f(document.all, 43)", "0");