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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-getContext-invalid.html

Issue 2674933002: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Corrections 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 PUBLIC "-//IETF//DTD HTML//EN"> 1 <script src="../../resources/testharness.js"></script>
2 <html> 2 <script src="../../resources/testharnessreport.js"></script>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body> 3 <body>
7 <script src="script-tests/canvas-getContext-invalid.js"></script> 4 <script>
5 test(function(t) {
6 canvas = document.createElement('canvas');
7
8 assert_equals(canvas.getContext(''), null);
9 assert_equals(canvas.getContext('2d#'), null);
10 assert_equals(canvas.getContext('This is clearly not a valid context name.') , null);
11 assert_equals(canvas.getContext('2d\0'), null);
12 assert_equals(canvas.getContext('2\uFF44'), null);
13 assert_equals(canvas.getContext('2D'), null);
14 assert_throws(null, function() {canvas.getContext();});
15 assert_equals(canvas.getContext('null'), null);
16 assert_equals(canvas.getContext('undefined'), null);
17
18 }, "Test that invalid canvas getContext() requests return null.");
19 </script>
8 </body> 20 </body>
9 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698