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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html

Issue 2676493005: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: 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
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html
index 9e28750b5a158c4f08b5f91b2d7ae0ed8be9f8d9..5b29c3097f1e2f172e6d4a07916bf4ed44369777 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html
@@ -1,12 +1,8 @@
-<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
-setup(function() {
- window.ctx = document.createElement('canvas').getContext('2d');
-});
-
-test(function() {
+test(function(t) {
+ ctx = document.createElement('canvas').getContext('2d');
ctx.fillStyle = "#008000";
ctx.fillStyle = "800000";
assert_equals(ctx.fillStyle, "#008000");

Powered by Google App Engine
This is Rietveld 408576698