From 8b9bb313f1399a1befed16777872d1d16ecf1216 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Wed, 5 Nov 2014 13:08:49 -0800 Subject: [PATCH] Switch test_sky to sky_server Adam did this in: https://codereview.chromium.org/699333002 But later reverted in: https://codereview.chromium.org/692333007 The problem was that the path to sky_server was being computed relative to the sky directory instead of being absolute, so when the bots tried to run test_sky from the root mojo directory instead of mojo/sky they failed. TBR=abarth@chromium.org Review URL: https://codereview.chromium.org/704833002 --- .../src/flutter/tests/parser/script-expected.txt | 14 +++++++------- .../flutter/tests/services/network-expected.txt | 2 +- engine/src/flutter/tests/services/network.sky | 2 +- engine/src/flutter/tests/services/xhr.sky | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/engine/src/flutter/tests/parser/script-expected.txt b/engine/src/flutter/tests/parser/script-expected.txt index 60eeb70e70..ba7de047b3 100644 --- a/engine/src/flutter/tests/parser/script-expected.txt +++ b/engine/src/flutter/tests/parser/script-expected.txt @@ -1,17 +1,17 @@ ERROR: Uncaught SyntaxError: Unexpected token < -SOURCE: http://127.0.0.1:8000/parser/script.sky:6 +SOURCE: http://127.0.0.1:8000/sky/tests/parser/script.sky:6 ERROR: Uncaught SyntaxError: Unexpected token < -SOURCE: http://127.0.0.1:8000/parser/script.sky:14 +SOURCE: http://127.0.0.1:8000/sky/tests/parser/script.sky:14 ERROR: Uncaught SyntaxError: Unexpected token < -SOURCE: http://127.0.0.1:8000/parser/script.sky:21 +SOURCE: http://127.0.0.1:8000/sky/tests/parser/script.sky:21 ERROR: Uncaught ReferenceError: TEST is not defined -SOURCE: http://127.0.0.1:8000/parser/script.sky:27 +SOURCE: http://127.0.0.1:8000/sky/tests/parser/script.sky:27 ERROR: Uncaught SyntaxError: Invalid regular expression: missing / -SOURCE: http://127.0.0.1:8000/parser/script.sky:34 +SOURCE: http://127.0.0.1:8000/sky/tests/parser/script.sky:34 ERROR: Uncaught SyntaxError: Invalid regular expression: missing / -SOURCE: http://127.0.0.1:8000/parser/script.sky:38 +SOURCE: http://127.0.0.1:8000/sky/tests/parser/script.sky:38 ERROR: Uncaught SyntaxError: Unexpected token } -SOURCE: http://127.0.0.1:8000/parser/script.sky:43 +SOURCE: http://127.0.0.1:8000/sky/tests/parser/script.sky:43 diff --git a/engine/src/flutter/tests/services/network-expected.txt b/engine/src/flutter/tests/services/network-expected.txt index 8cc3706a66..304d310614 100644 --- a/engine/src/flutter/tests/services/network-expected.txt +++ b/engine/src/flutter/tests/services/network-expected.txt @@ -1,4 +1,4 @@ -CONSOLE: LOG: url => http://127.0.0.1:8000/services/resources/pass.txt +CONSOLE: LOG: url => http://127.0.0.1:8000/sky/tests/services/resources/pass.txt CONSOLE: LOG: status_line => HTTP/1.1 200 OK CONSOLE: LOG: mime_type => text/plain CONSOLE: LOG: read 31 bytes diff --git a/engine/src/flutter/tests/services/network.sky b/engine/src/flutter/tests/services/network.sky index 01c54ff887..25a75a6adb 100644 --- a/engine/src/flutter/tests/services/network.sky +++ b/engine/src/flutter/tests/services/network.sky @@ -23,7 +23,7 @@ describe('Mojo network_service', function() { loader.URLLoader.stubClass, loader.URLLoader.proxyClass); var urlRequest = new loader.URLRequest(); - urlRequest.url = "http://127.0.0.1:8000/services/resources/pass.txt"; + urlRequest.url = "http://127.0.0.1:8000/sky/tests/services/resources/pass.txt"; urlRequest.method = "GET"; urlRequest.auto_follow_redirects = true; var urlRequestPromise = urlLoaderConnection.remote.start(urlRequest); diff --git a/engine/src/flutter/tests/services/xhr.sky b/engine/src/flutter/tests/services/xhr.sky index cc96cdc0a8..7d5089b459 100644 --- a/engine/src/flutter/tests/services/xhr.sky +++ b/engine/src/flutter/tests/services/xhr.sky @@ -17,7 +17,7 @@ describe('XMLHttpRequest', function() { assert.ok(false, "Got error: " + JSON.stringify(error)); done(); }; - xhr.open("GET", "http://127.0.0.1:8000/services/resources/pass.txt"); + xhr.open("GET", "http://127.0.0.1:8000/sky/tests/services/resources/pass.txt"); xhr.send(); }); });