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

Unified Diff: LayoutTests/fast/loader/resource-request-callbacks.html

Issue 1288323006: Remove willRequestResource callback, it is unused outside of tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove some experiments I accidentally included Created 5 years, 4 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/fast/loader/resource-request-callbacks.html
diff --git a/LayoutTests/fast/loader/resource-request-callbacks.html b/LayoutTests/fast/loader/resource-request-callbacks.html
deleted file mode 100644
index ee4d434f478d087cf7fa2b2bf5651875e528c147..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/loader/resource-request-callbacks.html
+++ /dev/null
@@ -1,78 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-<script>
-window.jsTestIsAsync = true;
-if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.dumpResourceRequestCallbacks();
-} else {
- document.write("This test cannot run without a testRunner");
-}
-
-function requestMoreResources() {
- document.getElementById("img-changing").src = "../images/resources/mu.png";
-
- var createdImage = document.createElement("img");
- createdImage.id = "img-created";
- createdImage.src = "../images/resources/oval.png";
- document.getElementById("images").appendChild(createdImage);
-
- document.getElementById("with-background").style.backgroundImage = "url(../images/resources/palatted-color-png-gamma-one-color-profile.png)";
- // Force a style recalc so the background image starts loading.
- getComputedStyle(document.getElementById("with-background"));
-
- document.getElementById("more-images").innerHTML = "<img id='img-created-2' src='../images/resources/png_per_row_alpha.png'>";
-
- var createdScript = document.createElement("script");
- createdScript.id = "script-created";
- createdScript.src = "../loader/resources/empty-script.js";
- document.head.appendChild(createdScript);
-
- setTimeout(finishTest, 0);
-}
-
-function finishTest() {
- testPassed("");
- finishJSTest();
-}
-</script>
-<style>
-#with-background
-{
- background-image:url("../images/resources/lenna.png");
-}
-body
-{
- cursor:url("../events/resources/greenbox-hotspot35-4.cur"), pointer;
-}
-@font-face
-{
- font-family: custom_font;
- src: url("../../resources/Ahem.ttf");
-}
-p
-{
- font-family: custom_font;
-}
-</style>
-</head>
-<body onload="requestMoreResources()">
-<div id="with-background">
-<p>
- This test checks that the correct callbacks for resource requests are
- invoked. It passes if you see the callbacks for 11 resources.
-</p>
-</div>
-<div id="images">
-<img id="img-normal" src="../images/resources/dice.png" />
-<img id="img-changing" src="../images/resources/dice.png" />
-<img id="img-fail" />
-<img id="img-not-there" src="not-existing.png" />
-</div>
-<div id="more-images">
-</div>
-<div id="console"></div>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698