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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/change-context.html

Issue 2700823002: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/change-context-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/change-context.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/change-context.html b/third_party/WebKit/LayoutTests/fast/canvas/change-context.html
index 9e247594c3e5bcaaafb4f4a98e6a524a59b06eab..675742dcab9dbd8e8a86df78857281f569029c02 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/change-context.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/change-context.html
@@ -1,19 +1,22 @@
-This test ensures that changing the context does not crash.
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
<canvas id="canvas"></canvas><br />
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-var canvas = document.getElementById("canvas");
-var ctx1 = canvas.getContext("2d");
-var ctx2 = canvas.getContext("");
-ctx1.save();
-canvas.parentNode.removeChild(canvas);
+<script>
+test(function(t) {
-if (window.GCController)
- GCController.collect();
+ var canvas = document.getElementById("canvas");
+ var ctx1 = canvas.getContext("2d");
+ var ctx2 = canvas.getContext("");
+ ctx1.save();
-ctx1.save();
-
+ canvas.parentNode.removeChild(canvas);
+
+ if (window.GCController)
+ GCController.collect();
+
+ ctx1.save();
+
+}, 'This test ensures that changing the context does not crash.');
</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/change-context-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698