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

Unified Diff: LayoutTests/inspector/profiler/canvas2d/canvas-has-uninstrumented-canvases.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-has-uninstrumented-canvases.html
diff --git a/LayoutTests/inspector/profiler/canvas2d/canvas-has-uninstrumented-canvases.html b/LayoutTests/inspector/profiler/canvas2d/canvas-has-uninstrumented-canvases.html
deleted file mode 100644
index 867f21cf8b288ba4c0beb02fcdff91f99c8dab17..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/profiler/canvas2d/canvas-has-uninstrumented-canvases.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<html>
-<head>
- <script src="../../../http/tests/inspector/inspector-test.js"></script>
- <script src="../canvas-profiler-test.js"></script>
-<script>
-
-var canvas;
-
-function createCanvasElement()
-{
- canvas = document.createElement("canvas");
- console.assert(canvas, "Failed to create a canvas element");
-}
-
-function getCanvasContext()
-{
- var context = canvas.getContext("2d");
- console.assert(context, "Failed to create a canvas context");
-}
-
-function test()
-{
- InspectorTest.evaluateInPage("createCanvasElement()", step1);
- function step1()
- {
- InspectorTest.enableCanvasAgent(step2);
- }
- function step2()
- {
- InspectorTest.CanvasAgent.hasUninstrumentedCanvases(hasUninstrumentedCanvasesCallback1);
- }
- function hasUninstrumentedCanvasesCallback1(error, result)
- {
- InspectorTest.addResult("hasUninstrumentedCanvases: " + result);
- InspectorTest.assertTrue(!error, "Unexpected error");
- InspectorTest.assertEquals(false, result, "There should be no uninstrumented canvases");
- InspectorTest.disableCanvasAgent(step3);
- }
- function step3()
- {
- InspectorTest.evaluateInPage("getCanvasContext()", step4);
- }
- function step4()
- {
- InspectorTest.enableCanvasAgent(step5);
- }
- function step5()
- {
- InspectorTest.CanvasAgent.hasUninstrumentedCanvases(hasUninstrumentedCanvasesCallback2);
- }
- function hasUninstrumentedCanvasesCallback2(error, result)
- {
- InspectorTest.addResult("hasUninstrumentedCanvases: " + result);
- InspectorTest.assertTrue(!error, "Unexpected error");
- InspectorTest.assertEquals(true, result, "There is an uninstrumented canvas!");
- InspectorTest.completeTest();
- }
-}
-
-</script>
-</head>
-<body onload="runTest()">
-<p>
-Tests Canvas hasUninstrumentedCanvases protocol method.
-</p>
-<a href="https://bugs.webkit.org/show_bug.cgi?id=105721">Bug 105721</a>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698