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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script> 1 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 2 <script src="../../resources/testharnessreport.js"></script>
4 <script> 3 <script>
5 setup(function() { 4 test(function(t) {
6 window.ctx = document.createElement('canvas').getContext('2d'); 5 ctx = document.createElement('canvas').getContext('2d');
7 }); 6 ctx.fillStyle = "#008000";
8 7 ctx.fillStyle = "800000";
9 test(function() { 8 assert_equals(ctx.fillStyle, "#008000");
10 ctx.fillStyle = "#008000";
11 ctx.fillStyle = "800000";
12 assert_equals(ctx.fillStyle, "#008000");
13 }, 'fillStyle should not accept quirks mode hex colors.'); 9 }, 'fillStyle should not accept quirks mode hex colors.');
14 </script> 10 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698