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

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: 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
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..ed36c5cdb2b811a330881e5aea8e7ea75bde38a1 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,14 +1,10 @@
-<!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() {
- ctx.fillStyle = "#008000";
- ctx.fillStyle = "800000";
- assert_equals(ctx.fillStyle, "#008000");
+test(function(t) {
+ ctx = document.createElement('canvas').getContext('2d');
+ ctx.fillStyle = "#008000";
+ ctx.fillStyle = "800000";
+ assert_equals(ctx.fillStyle, "#008000");
}, 'fillStyle should not accept quirks mode hex colors.');
</script>

Powered by Google App Engine
This is Rietveld 408576698