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

Issue 11810004: Make browser tests all run from a server instead of the local filesystem. (Closed)

Created:
7 years, 11 months ago by Emily Fortuna
Modified:
7 years, 11 months ago
CC:
reviews_dartlang.org, Bill Hesse, ricow1, Mads Ager (google), Bob Nystrom, Anton Muhin
Visibility:
Public.

Description

Make browser tests all run from a server instead of the local filesystem. BUG= Committed: https://code.google.com/p/dart/source/detail?r=17007

Patch Set 1 : #

Total comments: 35

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+402 lines, -204 lines) Patch
M pkg/intl/test/bidi_format_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/intl/test/bidi_utils_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/intl/test/date_time_format_file_test_stub.dart View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/intl/test/date_time_format_http_request_test.dart View 1 2 2 chunks +8 lines, -11 lines 0 comments Download
M pkg/intl/test/date_time_format_local_test_stub.dart View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/intl/test/date_time_format_test_core.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/intl/test/date_time_format_uninitialized_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/intl/test/find_default_locale_browser_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/intl/test/find_default_locale_standalone_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/intl/test/intl_message_basic_example_test.dart View 1 2 chunks +5 lines, -5 lines 0 comments Download
M pkg/intl/test/intl_test.dart View 1 chunk +3 lines, -4 lines 0 comments Download
M pkg/intl/test/number_format_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M samples/swarm/DataSource.dart View 1 1 chunk +3 lines, -2 lines 0 comments Download
M samples/swarm/SwarmApp.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M samples/tests/samples/swarm/swarm_test.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 1 chunk +3 lines, -5 lines 0 comments Download
M tests/html/exceptions_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/html/form_data_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/html/html.status View 1 2 6 chunks +0 lines, -8 lines 0 comments Download
M tests/html/xhr_cross_origin_test.dart View 3 chunks +30 lines, -2 lines 0 comments Download
M tests/html/xhr_test.dart View 1 1 chunk +51 lines, -6 lines 0 comments Download
M tools/dom/src/_HttpRequestUtils.dart View 1 chunk +3 lines, -5 lines 0 comments Download
M tools/test.dart View 1 3 chunks +22 lines, -14 lines 0 comments Download
M tools/testing/dart/browser_test.dart View 1 2 1 chunk +18 lines, -12 lines 0 comments Download
M tools/testing/dart/http_server.dart View 1 2 1 chunk +120 lines, -34 lines 1 comment Download
M tools/testing/dart/test_progress.dart View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M tools/testing/dart/test_runner.dart View 1 2 3 chunks +14 lines, -8 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 2 12 chunks +59 lines, -33 lines 1 comment Download
M tools/testing/run_selenium.py View 1 chunk +17 lines, -18 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Emily Fortuna
I've included everyone that was on the previous version of this CL, plus a few ...
7 years, 11 months ago (2013-01-10 02:07:10 UTC) #1
Jennifer Messerly
lgtm https://codereview.chromium.org/11810004/diff/9092/samples/swarm/SwarmApp.dart File samples/swarm/SwarmApp.dart (right): https://codereview.chromium.org/11810004/diff/9092/samples/swarm/SwarmApp.dart#newcode26 samples/swarm/SwarmApp.dart:26: Swarm([bool useCannedData = false]) : super(), onLoadFired = ...
7 years, 11 months ago (2013-01-10 02:18:10 UTC) #2
kustermann
I took just a quick look at it. https://codereview.chromium.org/11810004/diff/9092/tools/testing/dart/test_suite.dart File tools/testing/dart/test_suite.dart (right): https://codereview.chromium.org/11810004/diff/9092/tools/testing/dart/test_suite.dart#newcode1786 tools/testing/dart/test_suite.dart:1786: return ...
7 years, 11 months ago (2013-01-10 09:05:42 UTC) #3
ahe
https://codereview.chromium.org/11810004/diff/9092/tools/testing/dart/test_suite.dart File tools/testing/dart/test_suite.dart (right): https://codereview.chromium.org/11810004/diff/9092/tools/testing/dart/test_suite.dart#newcode422 tools/testing/dart/test_suite.dart:422: this.serverList, Why not use a named argument?
7 years, 11 months ago (2013-01-10 09:17:58 UTC) #4
Mads Ager (google)
https://codereview.chromium.org/11810004/diff/9092/tools/testing/dart/http_server.dart File tools/testing/dart/http_server.dart (right): https://codereview.chromium.org/11810004/diff/9092/tools/testing/dart/http_server.dart#newcode74 tools/testing/dart/http_server.dart:74: // Remove the initial slash in the request, since ...
7 years, 11 months ago (2013-01-10 09:18:55 UTC) #5
ahe
https://codereview.chromium.org/11810004/diff/9092/tools/testing/dart/http_server.dart File tools/testing/dart/http_server.dart (right): https://codereview.chromium.org/11810004/diff/9092/tools/testing/dart/http_server.dart#newcode13 tools/testing/dart/http_server.dart:13: main() { On 2013/01/10 02:07:10, Emily Fortuna wrote: > ...
7 years, 11 months ago (2013-01-10 09:27:23 UTC) #6
blois
lgtm Couple comments, but mostly for future items. https://codereview.chromium.org/11810004/diff/9092/tests/html/exceptions_test.dart File tests/html/exceptions_test.dart (left): https://codereview.chromium.org/11810004/diff/9092/tests/html/exceptions_test.dart#oldcode13 tests/html/exceptions_test.dart:13: expect(e.name, ...
7 years, 11 months ago (2013-01-10 17:58:16 UTC) #7
Alan Knight
lgtm I think this should obsolete dartbug.com/6410 , does that sound correct?
7 years, 11 months ago (2013-01-10 19:12:56 UTC) #8
Bob Nystrom
https://codereview.chromium.org/11810004/diff/9092/tools/testing/dart/http_server.dart File tools/testing/dart/http_server.dart (right): https://codereview.chromium.org/11810004/diff/9092/tools/testing/dart/http_server.dart#newcode74 tools/testing/dart/http_server.dart:74: // Remove the initial slash in the request, since ...
7 years, 11 months ago (2013-01-10 19:36:42 UTC) #9
ricow1
https://codereview.chromium.org/11810004/diff/9092/samples/swarm/DataSource.dart File samples/swarm/DataSource.dart (right): https://codereview.chromium.org/11810004/diff/9092/samples/swarm/DataSource.dart#newcode60 samples/swarm/DataSource.dart:60: void callback(Sections sections)) { I would indent this under ...
7 years, 11 months ago (2013-01-10 20:03:41 UTC) #10
Emily Fortuna
PTAL. Off of this code review Mads and I are discussing on the path libraries ...
7 years, 11 months ago (2013-01-11 02:57:11 UTC) #11
Mads Ager (google)
LGTM once the issues on Windows have been addressed. One command that failed for me ...
7 years, 11 months ago (2013-01-11 10:11:03 UTC) #12
ricow1
LGTM https://codereview.chromium.org/11810004/diff/24001/tools/test.dart File tools/test.dart (right): https://codereview.chromium.org/11810004/diff/24001/tools/test.dart#newcode108 tools/test.dart:108: // The http server is available on window.location.port, ...
7 years, 11 months ago (2013-01-11 10:22:51 UTC) #13
Bob Nystrom
https://codereview.chromium.org/11810004/diff/9092/tools/testing/dart/http_server.dart File tools/testing/dart/http_server.dart (right): https://codereview.chromium.org/11810004/diff/9092/tools/testing/dart/http_server.dart#newcode74 tools/testing/dart/http_server.dart:74: // Remove the initial slash in the request, since ...
7 years, 11 months ago (2013-01-11 16:27:42 UTC) #14
ahe
7 years, 11 months ago (2013-01-16 13:30:37 UTC) #15
Message was sent while issue was closed.
Please be very careful when you make changes to test.dart.

The Dart files in tools/testing/dart (and test.dart) should only import dart:
libraries and libraries from tools/testing/dart.

https://codereview.chromium.org/11810004/diff/28008/tools/testing/dart/http_s...
File tools/testing/dart/http_server.dart (right):

https://codereview.chromium.org/11810004/diff/28008/tools/testing/dart/http_s...
tools/testing/dart/http_server.dart:10: import
'../../../pkg/args/lib/args.dart';
This breaks test.dart in a subtle, but severe way.

test.dart is supposed to test the Dart platform, so it must be self-contained,
otherwise you'll be unable to test the platform. Before this CL, test.dart was
self-contained as all the libraries it uses are compiled into the binary VM in
tools/testing/bin/.

Let's say I'm working on a CL to change how you specify named parameters.

I find all the uses of named parameters in sdk/lib and pkg and update them. Then
I run the tests. This happens:

'file:///Users/ahe/Dart/all/dart/pkg/args/lib/args.dart': Error: line 356 pos
41: '=' expected
      this.negatable, this.allowMultiple: false]);
                                        ^
'file:///Users/ahe/Dart/all/dart/tools/testing/dart/http_server.dart': Error:
line 10 pos 1: library handler failed
import '../../../pkg/args/lib/args.dart';
^
'file:///Users/ahe/Dart/all/dart/tools/testing/dart/test_runner.dart': Error:
line 20 pos 1: library handler failed
import "http_server.dart" as http_server;
^
'file:///Users/ahe/Dart/all/dart/tools/test.dart': Error: line 28 pos 1: library
handler failed
import "testing/dart/test_runner.dart";
^

https://codereview.chromium.org/11810004/diff/28008/tools/testing/dart/test_s...
File tools/testing/dart/test_suite.dart (right):

https://codereview.chromium.org/11810004/diff/28008/tools/testing/dart/test_s...
tools/testing/dart/test_suite.dart:25: import '../../../pkg/path/lib/path.dart'
as pathLib;
Also breaks test.dart.

Powered by Google App Engine
This is Rietveld 408576698