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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-bg-multiple-removal.html

Issue 1416793004: Remove support for -webkit-canvas and Document.getCSSCanvasContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: third_party/WebKit/LayoutTests/fast/canvas/canvas-bg-multiple-removal.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-bg-multiple-removal.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-bg-multiple-removal.html
deleted file mode 100644
index ad09765b4f4e591ef765aca27d819c6ba8244352..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-bg-multiple-removal.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<html>
-<script>
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-window.onload = function()
-{
- if (location.hash == "#2") {
- document.body.innerHTML = "PASSED: Duplicate webkit-canvas styles removed without crash.";
- if (window.testRunner)
- testRunner.notifyDone();
- } else {
- if (location.hash)
- location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toString();
- else
- location.hash = "#1";
-
- iframe = document.body.appendChild(document.createElement('iframe'));
- element1 = document.createElement('a');
- iframe.contentDocument.body.appendChild(element1);
- element1.style.setProperty('background', '-webkit-canvas(canvas)');
-
- element2 = document.createElement('a');
- iframe.contentDocument.body.appendChild(element2);
- element2.style.setProperty('background', '-webkit-canvas(canvas)');
-
- element1.textContent = element2.textContent = 1;
- setTimeout(removeElements, 0);
- }
-}
-
-function removeElements()
-{
- iframe.contentDocument.body.removeChild(element1);
- document.adoptNode(element1);
-
- iframe.contentDocument.body.removeChild(element2);
- document.adoptNode(element2);
-
- document.body.removeChild(iframe);
- delete iframe;
-
- var timeout = 50;
- if (window.GCController)
- window.GCController.collect();
- else if (window.gc)
- gc();
- else
- timeout = 400;
- setTimeout(finishTest, timeout);
-}
-
-function finishTest()
-{
- document.body.appendChild(element1);
- setTimeout(function () { location.reload() }, 0);
-}
-
-</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698