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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/js/script-tests/custom-constructors.js

Issue 2490233002: Use unsigned longs in HTMLImageElement idl (Closed)
Patch Set: Fix compile error Created 4 years, 1 month 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
1 description( 1 description(
2 "This test checks construction of objects with custom constructors." 2 "This test checks construction of objects with custom constructors."
3 ); 3 );
4 4
5 // Image tests 5 // Image tests
6 shouldBeNonNull("new Image()"); 6 shouldBeNonNull("new Image()");
7 shouldBeEqualToString("new Image().tagName", "IMG"); 7 shouldBeEqualToString("new Image().tagName", "IMG");
8 8
9 shouldBe("new Image().height", "0"); 9 shouldBe("new Image().height", "0");
10 shouldBe("new Image().width", "0"); 10 shouldBe("new Image().width", "0");
11 shouldBe("new Image(0).width", "0"); 11 shouldBe("new Image(0).width", "0");
12 shouldBe("new Image(0, 0).height", "0"); 12 shouldBe("new Image(0, 0).height", "0");
13 shouldBe("new Image(100).width", "100"); 13 shouldBe("new Image(100).width", "100");
14 shouldBe("new Image(100, 200).height", "200"); 14 shouldBe("new Image(100, 200).height", "200");
15 shouldBe("new Image(-100).width", "-100"); 15 shouldBe("new Image(-100).width", "0");
16 shouldBe("new Image(-100, -200).height", "-200"); 16 shouldBe("new Image(-100, -200).height", "0");
17 17
18 shouldBe("new Image().hasAttribute('height')", "false"); 18 shouldBe("new Image().hasAttribute('height')", "false");
19 shouldBe("new Image().hasAttribute('width')", "false"); 19 shouldBe("new Image().hasAttribute('width')", "false");
20 shouldBe("new Image(0).hasAttribute('height')", "false"); 20 shouldBe("new Image(0).hasAttribute('height')", "false");
21 shouldBe("new Image(0).hasAttribute('width')", "true"); 21 shouldBe("new Image(0).hasAttribute('width')", "true");
22 shouldBe("new Image(0, 0).hasAttribute('height')", "true"); 22 shouldBe("new Image(0, 0).hasAttribute('height')", "true");
23 shouldBe("new Image(0, 0).hasAttribute('width')", "true"); 23 shouldBe("new Image(0, 0).hasAttribute('width')", "true");
24 24
25 shouldBeEqualToString("new Image().outerHTML","<img>"); 25 shouldBeEqualToString("new Image().outerHTML","<img>");
26 // FIXME: shouldBeEqualToString strips quotes from the string. 26 // FIXME: shouldBeEqualToString strips quotes from the string.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 shouldBeEqualToString("new Option('somedata', 'somevalue', true).outerHTML.repla ce(/\"/g,\"'\")", "<option value='somevalue' selected=''>somedata</option>"); 60 shouldBeEqualToString("new Option('somedata', 'somevalue', true).outerHTML.repla ce(/\"/g,\"'\")", "<option value='somevalue' selected=''>somedata</option>");
61 61
62 // Audio tests 62 // Audio tests
63 shouldBeNonNull("new Audio()"); 63 shouldBeNonNull("new Audio()");
64 shouldBeEqualToString("new Audio().tagName", "AUDIO"); 64 shouldBeEqualToString("new Audio().tagName", "AUDIO");
65 65
66 shouldBeEqualToString("new Audio().src", ""); 66 shouldBeEqualToString("new Audio().src", "");
67 shouldBeEqualToString("new Audio().preload", "auto"); 67 shouldBeEqualToString("new Audio().preload", "auto");
68 shouldBeEqualToString("new Audio('http://127.0.0.1/someurl').src", "http://127.0 .0.1/someurl"); 68 shouldBeEqualToString("new Audio('http://127.0.0.1/someurl').src", "http://127.0 .0.1/someurl");
69 shouldBeEqualToString("new Audio('http://127.0.0.1/someurl').preload", "auto"); 69 shouldBeEqualToString("new Audio('http://127.0.0.1/someurl').preload", "auto");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698