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

Side by Side Diff: LayoutTests/fast/canvas/canvas-hit-regions-basic-test.html

Issue 768793002: Revert of IDL: Null values should be converted for non-nullable dictionary members (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-hit-regions-basic-test-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Canvas Hit Regions: basic test</title> 4 <title>Canvas Hit Regions: basic test</title>
5 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <canvas id="canvas" width="400" height="400"> 8 <canvas id="canvas" width="400" height="400">
9 <button id="face"></button> 9 <button id="face"></button>
10 <button id="eyes"></button> 10 <button id="eyes"></button>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 shouldBe("clickCanvas(127, 242)", "'mouth'"); 70 shouldBe("clickCanvas(127, 242)", "'mouth'");
71 shouldBe("clickCanvas(150, 125)", "'eye'"); 71 shouldBe("clickCanvas(150, 125)", "'eye'");
72 shouldBe("clickCanvas(250, 125)", "'eye'"); 72 shouldBe("clickCanvas(250, 125)", "'eye'");
73 shouldBe("clickCanvas(200, 125)", "'face'"); 73 shouldBe("clickCanvas(200, 125)", "'face'");
74 shouldBe("clickCanvas(20, 10)", "null"); 74 shouldBe("clickCanvas(20, 10)", "null");
75 debug(""); 75 debug("");
76 76
77 debug("NotSupportedError exception tests"); 77 debug("NotSupportedError exception tests");
78 shouldThrow("context.addHitRegion()"); 78 shouldThrow("context.addHitRegion()");
79 shouldThrow("context.addHitRegion({ id : '' })"); 79 shouldThrow("context.addHitRegion({ id : '' })");
80 shouldThrow("context.addHitRegion({ id : null })");
80 shouldThrow("context.addHitRegion({ id : undefined })"); 81 shouldThrow("context.addHitRegion({ id : undefined })");
81 shouldThrow("context.addHitRegion({ control : {} })"); 82 shouldThrow("context.addHitRegion({ control : {} })");
82 shouldThrow("context.addHitRegion({ control : null })"); 83 shouldThrow("context.addHitRegion({ control : null })");
83 shouldThrow("context.addHitRegion({ control : undefined })"); 84 shouldThrow("context.addHitRegion({ control : undefined })");
84 shouldThrow("context.addHitRegion({ id : '', control : {} })"); 85 shouldThrow("context.addHitRegion({ id : '', control : {} })");
86 shouldThrow("context.addHitRegion({ id : null, control : {} })");
85 shouldThrow("context.addHitRegion({ id : undefined, control : {} })"); 87 shouldThrow("context.addHitRegion({ id : undefined, control : {} })");
86 shouldThrow("context.addHitRegion({ id : '', control : null })"); 88 shouldThrow("context.addHitRegion({ id : '', control : null })");
89 shouldThrow("context.addHitRegion({ id : null, control : null })");
87 shouldThrow("context.addHitRegion({ id : undefined, control : null })"); 90 shouldThrow("context.addHitRegion({ id : undefined, control : null })");
88 shouldThrow("context.addHitRegion({ id : '', control : undefined })"); 91 shouldThrow("context.addHitRegion({ id : '', control : undefined })");
92 shouldThrow("context.addHitRegion({ id : null, control : undefined })");
89 shouldThrow("context.addHitRegion({ id : undefined, control : undefined })"); 93 shouldThrow("context.addHitRegion({ id : undefined, control : undefined })");
90 debug(""); 94 debug("");
91 95
92 </script> 96 </script>
93 </body> 97 </body>
94 </html> 98 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/canvas/canvas-hit-regions-basic-test-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698