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

Issue 11641005: Add cross-origin test with credentials. (Closed)

Created:
8 years ago by Emily Fortuna
Modified:
7 years, 11 months ago
CC:
reviews_dartlang.org, Mads Ager (google), Bill Hesse, gram
Visibility:
Public.

Description

Add cross-origin test with credentials. I modified the test framework slightly as well to Enable Cross-origin requests while testing from local files. BUG= Committed: https://code.google.com/p/dart/source/detail?r=16671

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : addressed comments #

Total comments: 1

Patch Set 6 : #

Total comments: 14

Patch Set 7 : #

Total comments: 2

Patch Set 8 : jacobr's comments #

Total comments: 4

Patch Set 9 : #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -141 lines) Patch
M pkg/intl/test/bidi_format_test.dart View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/intl/test/bidi_utils_test.dart View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/intl/test/date_time_format_file_test_stub.dart View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/intl/test/date_time_format_http_request_test.dart View 1 2 3 4 5 6 2 chunks +8 lines, -11 lines 0 comments Download
M pkg/intl/test/date_time_format_local_test_stub.dart View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/intl/test/date_time_format_test_core.dart View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/intl/test/date_time_format_uninitialized_test.dart View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/intl/test/find_default_locale_browser_test.dart View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/intl/test/find_default_locale_standalone_test.dart View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/intl/test/intl_message_basic_example_test.dart View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/intl/test/intl_test.dart View 1 2 3 4 5 6 1 chunk +3 lines, -4 lines 0 comments Download
M pkg/intl/test/number_format_test.dart View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M sdk/lib/html/dart2js/html_dart2js.dart View 1 2 3 4 5 6 7 1 chunk +12 lines, -5 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 1 2 3 4 5 6 7 1 chunk +12 lines, -5 lines 0 comments Download
M tests/html/exceptions_test.dart View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M tests/html/form_data_test.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/html/html.status View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M tests/html/xhr_cross_origin_test.dart View 1 2 3 4 5 6 7 8 3 chunks +30 lines, -2 lines 0 comments Download
M tests/html/xhr_test.dart View 1 2 3 4 5 1 chunk +48 lines, -4 lines 0 comments Download
M tools/dom/src/_HttpRequestUtils.dart View 1 2 3 4 5 6 7 1 chunk +12 lines, -5 lines 0 comments Download
M tools/test.dart View 1 2 3 4 3 chunks +19 lines, -14 lines 0 comments Download
M tools/testing/dart/browser_test.dart View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -10 lines 2 comments Download
M tools/testing/dart/http_server.dart View 1 2 3 4 5 6 3 chunks +26 lines, -12 lines 3 comments Download
M tools/testing/dart/test_suite.dart View 1 2 3 4 5 6 7 8 9 chunks +32 lines, -17 lines 1 comment Download
M tools/testing/run_selenium.py View 1 2 3 1 chunk +17 lines, -18 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Emily Fortuna
I added these tests while investigating: http://code.google.com/p/dart/issues/detail?id=6792 While I couldn't reproduce the bug (on any ...
8 years ago (2012-12-20 23:21:25 UTC) #1
Bill Hesse
https://codereview.chromium.org/11641005/diff/2001/tools/testing/run_selenium.py File tools/testing/run_selenium.py (right): https://codereview.chromium.org/11641005/diff/2001/tools/testing/run_selenium.py#newcode175 tools/testing/run_selenium.py:175: else: options.binary_location = os.path.join(dartium_dir, 'chrome') DBC: Do we really ...
8 years ago (2012-12-21 00:22:17 UTC) #2
Emily Fortuna
https://codereview.chromium.org/11641005/diff/2001/tools/testing/run_selenium.py File tools/testing/run_selenium.py (right): https://codereview.chromium.org/11641005/diff/2001/tools/testing/run_selenium.py#newcode175 tools/testing/run_selenium.py:175: else: options.binary_location = os.path.join(dartium_dir, 'chrome') On 2012/12/21 00:22:17, Bill ...
8 years ago (2012-12-21 00:33:08 UTC) #3
ricow1
Adding martin
8 years ago (2012-12-21 07:02:13 UTC) #4
kustermann
https://codereview.chromium.org/11641005/diff/2002/tools/testing/run_selenium.py File tools/testing/run_selenium.py (right): https://codereview.chromium.org/11641005/diff/2002/tools/testing/run_selenium.py#newcode163 tools/testing/run_selenium.py:163: options = selenium.webdriver.chrome.options.Options() Is there a reason why you ...
8 years ago (2012-12-21 09:37:16 UTC) #5
Emily Fortuna
https://codereview.chromium.org/11641005/diff/2002/tools/testing/run_selenium.py File tools/testing/run_selenium.py (right): https://codereview.chromium.org/11641005/diff/2002/tools/testing/run_selenium.py#newcode163 tools/testing/run_selenium.py:163: options = selenium.webdriver.chrome.options.Options() On 2012/12/21 09:37:16, kustermann wrote: > ...
8 years ago (2012-12-21 18:53:14 UTC) #6
blois
lgtm
7 years, 11 months ago (2012-12-28 18:10:35 UTC) #7
Emily Fortuna
PTAL. I changed up the test framework a little bit more to have two servers ...
7 years, 11 months ago (2012-12-29 01:23:57 UTC) #8
Bill Hesse
I think Martin and Rico have comments. https://codereview.chromium.org/11641005/diff/15001/tools/testing/dart/http_server.dart File tools/testing/dart/http_server.dart (right): https://codereview.chromium.org/11641005/diff/15001/tools/testing/dart/http_server.dart#newcode52 tools/testing/dart/http_server.dart:52: httpServer.listen(host, port); ...
7 years, 11 months ago (2013-01-02 08:22:20 UTC) #9
Mads Ager (google)
DBC Very cool that we are starting to load the browser tests from an actual ...
7 years, 11 months ago (2013-01-02 10:09:50 UTC) #10
blois
On 2013/01/02 10:09:50, Mads Ager wrote: > DBC > > Very cool that we are ...
7 years, 11 months ago (2013-01-02 17:03:13 UTC) #11
Emily Fortuna
https://codereview.chromium.org/11641005/diff/15001/tools/testing/dart/http_server.dart File tools/testing/dart/http_server.dart (right): https://codereview.chromium.org/11641005/diff/15001/tools/testing/dart/http_server.dart#newcode52 tools/testing/dart/http_server.dart:52: httpServer.listen(host, port); On 2013/01/02 08:22:20, Bill Hesse wrote: > ...
7 years, 11 months ago (2013-01-02 18:22:38 UTC) #12
Emily Fortuna
Whew, this is quite a CL! It has a lot of files, but you don't ...
7 years, 11 months ago (2013-01-04 00:51:03 UTC) #13
Alan Knight
I'll assume that the overall changes will enable the intl test to work that way, ...
7 years, 11 months ago (2013-01-04 01:03:44 UTC) #14
Siggi Cherem (dart-lang)
https://codereview.chromium.org/11641005/diff/30004/pkg/unittest/lib/html_config.dart File pkg/unittest/lib/html_config.dart (right): https://codereview.chromium.org/11641005/diff/30004/pkg/unittest/lib/html_config.dart#newcode148 pkg/unittest/lib/html_config.dart:148: * this test. nit: rephase, maybe "The value of ...
7 years, 11 months ago (2013-01-04 01:49:43 UTC) #15
Mads Ager (google)
https://codereview.chromium.org/11641005/diff/30004/tools/testing/dart/http_server.dart File tools/testing/dart/http_server.dart (right): https://codereview.chromium.org/11641005/diff/30004/tools/testing/dart/http_server.dart#newcode11 tools/testing/dart/http_server.dart:11: HttpServer startHttpServer(String host, [int allowedPort=-1]) { Could you add ...
7 years, 11 months ago (2013-01-04 09:39:20 UTC) #16
Emily Fortuna
PTAL. https://codereview.chromium.org/11641005/diff/30004/pkg/unittest/lib/html_config.dart File pkg/unittest/lib/html_config.dart (right): https://codereview.chromium.org/11641005/diff/30004/pkg/unittest/lib/html_config.dart#newcode148 pkg/unittest/lib/html_config.dart:148: * this test. On 2013/01/04 01:49:43, Siggi Cherem ...
7 years, 11 months ago (2013-01-04 23:26:54 UTC) #17
Jacob
couple tiny nits https://codereview.chromium.org/11641005/diff/63001/tools/dom/src/_HttpRequestUtils.dart File tools/dom/src/_HttpRequestUtils.dart (right): https://codereview.chromium.org/11641005/diff/63001/tools/dom/src/_HttpRequestUtils.dart#newcode20 tools/dom/src/_HttpRequestUtils.dart:20: // TODO(efortuna): Previously the HttpRequest.get only ...
7 years, 11 months ago (2013-01-04 23:55:25 UTC) #18
Alan Knight
lgtm
7 years, 11 months ago (2013-01-04 23:58:30 UTC) #19
Emily Fortuna
Bob, could you please take a look at the package:path modifications in tools/testing/dart/browser_test.dart and tools/testing/dart/http_server.dart ...
7 years, 11 months ago (2013-01-05 00:06:48 UTC) #20
Bob Nystrom
Some suggestions then browser_test LGTM. I didn't see any "package:" stuff in http_server. Did I ...
7 years, 11 months ago (2013-01-05 00:26:42 UTC) #21
Siggi Cherem (dart-lang)
https://codereview.chromium.org/11641005/diff/52003/tests/html/xhr_cross_origin_test.dart File tests/html/xhr_cross_origin_test.dart (right): https://codereview.chromium.org/11641005/diff/52003/tests/html/xhr_cross_origin_test.dart#newcode18 tests/html/xhr_cross_origin_test.dart:18: int get getCrossOriginPort { nit: get rid of the ...
7 years, 11 months ago (2013-01-05 00:31:10 UTC) #22
Mads Ager (google)
https://codereview.chromium.org/11641005/diff/48003/tools/testing/dart/browser_test.dart File tools/testing/dart/browser_test.dart (right): https://codereview.chromium.org/11641005/diff/48003/tools/testing/dart/browser_test.dart#newcode58 tools/testing/dart/browser_test.dart:58: var testPathDir = pathLib.dirname(testPath); Can you pass in a ...
7 years, 11 months ago (2013-01-07 07:15:52 UTC) #23
Emily Fortuna
7 years, 11 months ago (2013-01-07 18:01:31 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/11641005/diff/48003/tools/testing/dart/browse...
File tools/testing/dart/browser_test.dart (right):

https://codereview.chromium.org/11641005/diff/48003/tools/testing/dart/browse...
tools/testing/dart/browser_test.dart:58: var testPathDir =
pathLib.dirname(testPath);
On 2013/01/07 07:15:52, Mads Ager wrote:
> Can you pass in a Path here, please? I don't like the mix of Path and String
and
> the mix of two Path libraries. Let's stick with the dart:io Path library for
the
> test scripts at this point.
> 
> The dart:io Path object has a relativeTo method as well. Would that work for
> you?

Unfortunately the relativeTo method in the main Path library is does not work on
Windows where the path is already a relative path (see bob's comment that was
deleted in this file 62-65). Ideally once I started switching over to use the
other path library, I'd change it everywhere in test.dart, but this CL was
getting to be so big, I figured I'd do that in another CL. 

At any rate, this CL got reverted due to Windows issues, and I won't be putting
it back in until things calm down a lot on our bots.

Powered by Google App Engine
This is Rietveld 408576698