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

Unified Diff: LayoutTests/inspector/profiler/canvas2d/canvas2d-gradient-capturing.html

Issue 1073863003: DevTools: remove Canvas profiler from DevTools source base. See details in the bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tests gone Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/profiler/canvas2d/canvas2d-gradient-capturing.html
diff --git a/LayoutTests/inspector/profiler/canvas2d/canvas2d-gradient-capturing.html b/LayoutTests/inspector/profiler/canvas2d/canvas2d-gradient-capturing.html
deleted file mode 100644
index 1670fce031f9649c1f147818a0f56e5a9fcf8b1d..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/profiler/canvas2d/canvas2d-gradient-capturing.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<html>
-<head>
- <script src="../../../http/tests/inspector/inspector-test.js"></script>
- <script src="../canvas-profiler-test.js"></script>
-<script>
-
-var ctx;
-var rawCtx;
-var ctxResource;
-
-function testCanvasGradientCapturing()
-{
- var gradient = ctx.createLinearGradient(0, 0, 10, 10);
- console.assert(gradient, "Failed to create a CanvasGradient object");
- gradient.addColorStop(0, '#fff');
- gradient.addColorStop(0.3, '#aaa');
- gradient.addColorStop(1, '#000');
-
- var gradientResource = gradient["__resourceObject"];
- console.assert(gradientResource, "CanvasGradient object is not wrapped");
-
- var calls = gradientResource.calls();
- var expectedLength = 4;
- console.assert(calls.length === expectedLength, "Expected length of the log: " + expectedLength + ", but was: " + calls.length);
-}
-
-function createAndRunCanvas2DProgram()
-{
- ctx = createCanvas2DContext();
- console.assert(ctx, "Failed to create 2D context");
-
- ctxResource = ctx["__resourceObject"];
- console.assert(ctxResource, "2D context is not wrapped");
-
- rawCtx = ctxResource.wrappedObject();
- console.assert(rawCtx, "No raw 2D context found");
- console.assert(ctx !== rawCtx, "Proxy and RAW contexts should not be the same");
-
- testCanvasGradientCapturing();
-
- return "SUCCESS";
-}
-
-function test()
-{
- InspectorTest.enableCanvasAgent(step1);
- function step1()
- {
- InspectorTest.evaluateInPage("createAndRunCanvas2DProgram()", step2);
- }
- function step2(error)
- {
- InspectorTest.assertEquals("SUCCESS", error.description);
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-<body onload="runTest()">
-<p>
-Tests Canvas 2D capturing for CanvasGradient objects.
-</p>
-<a href="https://bugs.webkit.org/show_bug.cgi?id=101432">Bug 101432</a>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698