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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/imagebitmap-renderingcontext/context-creation.html

Issue 2502433002: Import wpt@8dc7bfef80f5df47e14509d1496bdbc5ec24c91c (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 4 years, 1 month 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
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>Canvas's ImageBitmapRenderingContext test</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <link rel="help" href="https://html.spec.whatwg.org/multipage/scripting.html#the -imagebitmap-rendering-context">
7 <script>
8 var width = 10;
9 var height = 10;
10
11 test(function() {
12 var canvas = document.createElement("canvas");
13 canvas.width = width;
14 canvas.height = height;
15 var ctx = canvas.getContext('bitmaprenderer');
16 assert_true(ctx instanceof ImageBitmapRenderingContext);
17 }, "Test that canvas.getContext('bitmaprenderer') returns an instance of ImageBi tmapRenderingContext");
18
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698