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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/cache/post-redirect-get.php

Issue 2532103003: Fix http/tests/cache random-order flakiness (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/cache/post-with-cached-subresources.php » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/cache/post-redirect-get.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/cache/post-redirect-get.php b/third_party/WebKit/LayoutTests/http/tests/cache/post-redirect-get.php
index ce04ca2f108e777000900bc71591bbf0baea4b8b..0d80f104e01a3c64b9f9768b82a08963316a0ec8 100644
--- a/third_party/WebKit/LayoutTests/http/tests/cache/post-redirect-get.php
+++ b/third_party/WebKit/LayoutTests/http/tests/cache/post-redirect-get.php
@@ -30,7 +30,7 @@ function logAndFinish(message)
{
document.getElementById("result").appendChild(document.createTextNode(message));
var xhr = new XMLHttpRequest;
- xhr.open("GET", "../resources/reset-temp-file.php?filename=post.tmp", false);
+ xhr.open("GET", "../resources/reset-temp-file.php?filename=post-redirect-get.tmp", false);
xhr.send(null);
if (window.testRunner)
testRunner.notifyDone();
@@ -41,19 +41,19 @@ clearstatcache();
if ($_GET["finish"] == "true") {
// The initial load of the image might have been done from the cache. In that case, touch the
// state file to indicate a load has already occurred.
- if (!file_exists(sys_get_temp_dir() . "/post.tmp")) {
+ if (!file_exists(sys_get_temp_dir() . "/post-redirect-get.tmp")) {
echo "<script>";
echo "xhr = new XMLHttpRequest;";
- echo "xhr.open('GET', '../resources/touch-temp-file.php?filename=post.tmp', false);";
+ echo "xhr.open('GET', '../resources/touch-temp-file.php?filename=post-redirect-get.tmp', false);";
echo "xhr.send(null);";
echo "</script>";
}
- echo "<img src='resources/post-image-to-verify.php' onload=\"logAndFinish('PASS');\" onerror=\"logAndFinish('FAIL');\"></img>";
+ echo "<img src='resources/post-image-to-verify.php?filename=post-redirect-get.tmp' onload=\"logAndFinish('PASS');\" onerror=\"logAndFinish('FAIL');\"></img>";
} else {
echo "<form action='post-redirect-get.php' method='post'>";
echo "<input type='submit' id='submit' name='submit' value='redirect'>";
echo "</form>";
- echo "<img src='resources/post-image-to-verify.php' onload=\"document.getElementById('submit').click();\" onerror=\"logAndFinish('FAIL on initial load');\"></img>";
+ echo "<img src='resources/post-image-to-verify.php?filename=post-redirect-get.tmp' onload=\"document.getElementById('submit').click();\" onerror=\"logAndFinish('FAIL on initial load');\"></img>";
}
?>
</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/cache/post-with-cached-subresources.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698