forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert of Re-enable prerender RemovingLink browser tests. (https://co…
…dereview.chromium.org/142013004/) Reason for revert: Failing on XP Tests 1, build 30187 and onwards. Also failing on XP Tests 2 and 3. [ RUN ] PrerenderBrowserTest.PrerenderPageRemovingLinkWithTwoLinks HTTP server started on 127.0.0.1:4080... sending server_data: {"host": "127.0.0.1", "port": 4080} (35 bytes) File not found prerender/prerender_page.html%E2%80%93)%C3%A4%C2%B3%C3%BBh%C3%BE)%C3%ACz%C2%BB full path:E:\b\build\slave\XP_Tests__1_\build\src\chrome/test/data\prerender\prerender_page.html%E2%80%93)%C3%A4%C2%B3%C3%BBh%C3%BE)%C3%ACz%C2%BB 127.0.0.1 - - [14/Feb/2014 22:17:53] code 404, message Not Found [2656:2572:0214/221753:3777828:INFO:CONSOLE(1)] "Uncaught ReferenceError: DidPrerenderPass is not defined", source: (1) Original issue's description: > Re-enable prerender RemovingLink browser tests. > > The tests have changed significantly since they were first disabled. Add a > WaitForStop or two for good measure, but leave them as-is for the most part. > They can be disabled again if they still flake. Merge their custom prerender > loader into the main one; it's mostly the same. > > In addition, for better test coverage, add a new test which asserts on events > received when a <link rel=prerender> is added for an existing prerender after > that prerender has loaded. Significantly rework the prerender events logic > to allow the test framework to wait on an event being received in the loader. > > BUG=167340, 128841 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251495 TBR=mmenke@chromium.org,davidben@chromium.org NOTREECHECKS=true NOTRY=true BUG=167340, 128841 Review URL: https://codereview.chromium.org/170173003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251732 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
thestig@chromium.org
committed
Feb 18, 2014
1 parent
ac2c0bc
commit b53ac71
Showing
6 changed files
with
142 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
chrome/test/data/prerender/prerender_loader_removing_links.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<html> | ||
<head> | ||
<title>Preloader</title> | ||
|
||
<script src="prerender_events_common.js"></script> | ||
|
||
<script> | ||
function ExtractGetParameterBadlyAndInsecurely(param, defaultValue) { | ||
var re = RegExp('[&?]' + param + '=([^&?#]*)'); | ||
var result = re.exec(document.location); | ||
if (result) | ||
return result[1]; | ||
return defaultValue; | ||
} | ||
|
||
var numLinksToInsert = | ||
ExtractGetParameterBadlyAndInsecurely('links_to_insert', 1); | ||
|
||
function RemoveLinkElement(index) { | ||
var link = document.getElementById('prerenderElement' + index); | ||
link.parentElement.removeChild(link); | ||
} | ||
</script> | ||
</head> | ||
<body> | ||
<script> | ||
for (var i = 0; i < numLinksToInsert; ++i) { | ||
var link = AddPrerender('REPLACE_WITH_PRERENDER_URL', i); | ||
link.id = 'prerenderElement' + i; | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.