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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.reset.2dstate.html

Issue 2553473002: Add offscreen-canvas to the list of wpt directories to skip. (Closed)
Patch Set: Created 4 years 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/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.reset.2dstate.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.reset.2dstate.html b/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.reset.2dstate.html
deleted file mode 100644
index 13ef0c140f169d57ddd965079fe95892c7141d10..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/offscreen-canvas/the-offscreen-canvas/initial.reset.2dstate.html
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
-<title>OffscreenCanvas test: initial.reset.2dstate</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="/common/canvas-tests.js"></script>
-
-<h1>initial.reset.2dstate</h1>
-<p class="desc">Resetting the canvas state resets 2D state variables</p>
-
-
-<script>
-var t = async_test("Resetting the canvas state resets 2D state variables");
-t.step(function() {
-
-var offscreenCanvas = new OffscreenCanvas(100, 50);
-var ctx = offscreenCanvas.getContext('2d');
-
-offscreenCanvas.width = 100;
-var default_val;
-
-default_val = ctx.strokeStyle;
-ctx.strokeStyle = "#ff0000";
-offscreenCanvas.width = 100;
-_assertSame(ctx.strokeStyle, default_val, "ctx.strokeStyle", "default_val");
-
-default_val = ctx.fillStyle;
-ctx.fillStyle = "#ff0000";
-offscreenCanvas.width = 100;
-_assertSame(ctx.fillStyle, default_val, "ctx.fillStyle", "default_val");
-
-default_val = ctx.globalAlpha;
-ctx.globalAlpha = 0.5;
-offscreenCanvas.width = 100;
-_assertSame(ctx.globalAlpha, default_val, "ctx.globalAlpha", "default_val");
-
-default_val = ctx.lineWidth;
-ctx.lineWidth = 0.5;
-offscreenCanvas.width = 100;
-_assertSame(ctx.lineWidth, default_val, "ctx.lineWidth", "default_val");
-
-default_val = ctx.lineCap;
-ctx.lineCap = "round";
-offscreenCanvas.width = 100;
-_assertSame(ctx.lineCap, default_val, "ctx.lineCap", "default_val");
-
-default_val = ctx.lineJoin;
-ctx.lineJoin = "round";
-offscreenCanvas.width = 100;
-_assertSame(ctx.lineJoin, default_val, "ctx.lineJoin", "default_val");
-
-default_val = ctx.miterLimit;
-ctx.miterLimit = 0.5;
-offscreenCanvas.width = 100;
-_assertSame(ctx.miterLimit, default_val, "ctx.miterLimit", "default_val");
-
-default_val = ctx.shadowOffsetX;
-ctx.shadowOffsetX = 5;
-offscreenCanvas.width = 100;
-_assertSame(ctx.shadowOffsetX, default_val, "ctx.shadowOffsetX", "default_val");
-
-default_val = ctx.shadowOffsetY;
-ctx.shadowOffsetY = 5;
-offscreenCanvas.width = 100;
-_assertSame(ctx.shadowOffsetY, default_val, "ctx.shadowOffsetY", "default_val");
-
-default_val = ctx.shadowBlur;
-ctx.shadowBlur = 5;
-offscreenCanvas.width = 100;
-_assertSame(ctx.shadowBlur, default_val, "ctx.shadowBlur", "default_val");
-
-default_val = ctx.shadowColor;
-ctx.shadowColor = "#ff0000";
-offscreenCanvas.width = 100;
-_assertSame(ctx.shadowColor, default_val, "ctx.shadowColor", "default_val");
-
-default_val = ctx.globalCompositeOperation;
-ctx.globalCompositeOperation = "copy";
-offscreenCanvas.width = 100;
-_assertSame(ctx.globalCompositeOperation, default_val, "ctx.globalCompositeOperation", "default_val");
-
-t.done();
-
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698