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

Unified Diff: LayoutTests/inspector/profiler/canvas2d/canvas-stack-trace.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/canvas-stack-trace.html
diff --git a/LayoutTests/inspector/profiler/canvas2d/canvas-stack-trace.html b/LayoutTests/inspector/profiler/canvas2d/canvas-stack-trace.html
deleted file mode 100644
index 11e4d4cd0a8fed47570bb05278d23e3bc30239d2..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/profiler/canvas2d/canvas-stack-trace.html
+++ /dev/null
@@ -1,65 +0,0 @@
-<html>
-<head>
- <script src="../../../http/tests/inspector/inspector-test.js"></script>
- <script src="../canvas-profiler-test.js"></script>
-<script>
-
-var canvas;
-var context;
-
-function createCanvasContext()
-{
- canvas = document.getElementById("canvas");
- context = canvas.getContext("2d");
- console.assert(context, "Failed to create a canvas context");
-}
-
-function doSomeCanvasCalls()
-{
- context.beginPath();
- context.rect(0, 0, 100, 100);
- context.fillStyle = 'red';
- context.fill();
-}
-
-function test()
-{
- var traceLogId;
- InspectorTest.enableCanvasAgent(step1);
- function step1()
- {
- InspectorTest.evaluateInPage("createCanvasContext()", step2);
- }
- function step2()
- {
- InspectorTest.CanvasAgent.startCapturing(didStartCapturing);
- }
- function didStartCapturing(error, id)
- {
- InspectorTest.assertTrue(!error && !!id, "Unexpected error: " + error);
- traceLogId = id;
- InspectorTest.evaluateInPage("doSomeCanvasCalls()", didSomeCanvasCalls);
- }
- function didSomeCanvasCalls()
- {
- InspectorTest.CanvasAgent.getTraceLog(traceLogId, 0, undefined, didReceiveTraceLog);
- }
- function didReceiveTraceLog(error, traceLog)
- {
- InspectorTest.assertTrue(!error && !!traceLog, "Unexpected error: " + error);
- InspectorTest.addResult("");
- InspectorTest.dumpTraceLog(traceLog);
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-<body onload="runTest()">
-<p>
-Tests stack traces in the Canvas TraceLog results.
-</p>
-<a href="https://bugs.webkit.org/show_bug.cgi?id=107805">Bug 107805</a>
-<canvas id="canvas"></canvas>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698