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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-empty-image-pattern.html

Issue 2678493002: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Addressing comments Created 3 years, 10 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
1 <!DOCTYPE HTML> 1 <script src="../../resources/testharness.js"></script>
2 <title>Canvas test: filling a pattern with an empty image should not crash and s hould return a null pattern.</title> 2 <script src="../../resources/testharnessreport.js"></script>
3 <div id="console"></div> 3 <canvas id="canvas" width="100" height="100"></canvas>
4 <canvas id="canvas" class="output" width="100" height="100"><p class="fallback"> FAIL (fallback content)</p></canvas> 4
5 <script> 5 <script>
6 if (window.testRunner) 6 test(function(t) {
7 testRunner.dumpAsText(); 7 var ctx = document.getElementById("canvas").getContext("2d");
8 8 var pattern = ctx.createPattern(new Image, "repeat")
9 var canvas = document.getElementById("canvas").getContext("2d"); 9 assert_equals(pattern, null);
10 var pattern = canvas.createPattern(new Image, "repeat") 10 }, 'Test if filling a pattern with an empty image does not crash and returns a n ull pattern.');
11 if (pattern)
12 document.getElementById("console").innerHTML = "TEST FAILED";
13 else
14 document.getElementById("console").innerHTML = "TEST PASSED";
15 </script> 11 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698