Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/WebRequest.cpp

Issue 29341000: No issue - fix tests since easylist moved (Closed)
Patch Set: Created May 3, 2016, 11:17 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/WebRequest.cpp
diff --git a/test/WebRequest.cpp b/test/WebRequest.cpp
index 5860c868f1984f6ab34b73ddf93cbdde2c4e5ce2..4a262f1273d443334ee281886b9eeac49f09b670 100644
--- a/test/WebRequest.cpp
+++ b/test/WebRequest.cpp
@@ -79,7 +79,7 @@ TEST_F(DefaultWebRequestTest, RealWebRequest)
{
// This URL should redirect to easylist-downloads.adblockplus.org and we
// should get the actual filter list back.
- jsEngine->Evaluate("_webRequest.GET('https://easylist.adblockplus.org/easylist.txt', {}, function(result) {foo = result;} )");
+ jsEngine->Evaluate("_webRequest.GET('https://easylist-downloads.adblockplus.org/easylist.txt', {}, function(result) {foo = result;} )");
do
{
AdblockPlus::Sleep(200);
@@ -99,7 +99,7 @@ TEST_F(DefaultWebRequestTest, XMLHttpRequest)
jsEngine->Evaluate("\
var result;\
var request = new XMLHttpRequest();\
- request.open('GET', 'https://easylist.adblockplus.org/easylist.txt');\
+ request.open('GET', 'https://easylist-downloads.adblockplus.org/easylist.txt');\
request.setRequestHeader('X', 'Y');\
request.setRequestHeader('X2', 'Y2');\
request.overrideMimeType('text/plain');\
@@ -119,7 +119,7 @@ TEST_F(DefaultWebRequestTest, XMLHttpRequest)
#else
TEST_F(DefaultWebRequestTest, DummyWebRequest)
{
- jsEngine->Evaluate("_webRequest.GET('https://easylist.adblockplus.org/easylist.txt', {}, function(result) {foo = result;} )");
+ jsEngine->Evaluate("_webRequest.GET('https://easylist-downloads.adblockplus.org/easylist.txt', {}, function(result) {foo = result;} )");
do
{
AdblockPlus::Sleep(200);
@@ -137,7 +137,7 @@ TEST_F(DefaultWebRequestTest, XMLHttpRequest)
jsEngine->Evaluate("\
var result;\
var request = new XMLHttpRequest();\
- request.open('GET', 'https://easylist.adblockplus.org/easylist.txt');\
+ request.open('GET', 'https://easylist-downloads.adblockplus.org/easylist.txt');\
request.setRequestHeader('X', 'Y');\
request.overrideMimeType('text/plain');\
request.addEventListener('load', function() {result = request.responseText;}, false);\
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld