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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-getContext-in-worker.js

Issue 2271593002: Convert OffscreenCanvas-getContext tests to testharness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed test as per the comments. Created 4 years, 3 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
(Empty)
1 importScripts("../../resources/testharness.js");
fs 2016/08/25 08:14:58 Could possibly put this file in a resources/ or sc
2 test(function() {
3 var aCanvas = new OffscreenCanvas(50, 50);
4 var bCanvas = new OffscreenCanvas(50, 50);
5 var ctx1 = aCanvas.getContext('2d');
6 var ctx2 = bCanvas.getContext('webgl');
7 assert_true(ctx1 instanceof OffscreenCanvasRenderingContext2D);
8 assert_true(ctx2 instanceof WebGLRenderingContext);
9 });
10 done();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698