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

Issue 10696092: Initial tests for JS interop (Closed)

Created:
8 years, 5 months ago by vsm
Modified:
8 years, 5 months ago
Reviewers:
kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Initial tests for JS interop BUG=625 Committed: https://code.google.com/p/dart/source/detail?r=9384

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -0 lines) Patch
M tests/html/html.status View 1 1 chunk +1 line, -0 lines 0 comments Download
A tests/html/js_interop_1_test.dart View 1 1 chunk +30 lines, -0 lines 0 comments Download
A tests/html/js_interop_2_test.dart View 1 1 chunk +50 lines, -0 lines 0 comments Download
M tools/testing/dart/browser_test.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
vsm
8 years, 5 months ago (2012-07-03 14:46:49 UTC) #1
kasperl
LGTM. https://chromiumcodereview.appspot.com/10696092/diff/1/client/dart.js File client/dart.js (right): https://chromiumcodereview.appspot.com/10696092/diff/1/client/dart.js#newcode37 client/dart.js:37: window._$dart$initialized = true; Let's add a comment here ...
8 years, 5 months ago (2012-07-04 05:13:00 UTC) #2
vsm
8 years, 5 months ago (2012-07-04 07:43:09 UTC) #3
thanks, landing.

https://chromiumcodereview.appspot.com/10696092/diff/1/client/dart.js
File client/dart.js (right):

https://chromiumcodereview.appspot.com/10696092/diff/1/client/dart.js#newcode37
client/dart.js:37: window._$dart$initialized = true;
Removed.  I'd been using it to verify this script was executed prior to each
test being run.  When we add *PortSync here, that'll effectively test this
again.

On 2012/07/04 05:13:00, kasperl wrote:
> Let's add a comment here that explains what the purpose of this is. As it is
> now, it looks kinda fishy.

https://chromiumcodereview.appspot.com/10696092/diff/1/tests/html/html.status
File tests/html/html.status (right):

https://chromiumcodereview.appspot.com/10696092/diff/1/tests/html/html.status...
tests/html/html.status:10: js_interop_2_test: Skip  # Issue 625
On 2012/07/04 05:13:00, kasperl wrote:
> Can't we mark this as failing instead ... or does it hang?

Done.

https://chromiumcodereview.appspot.com/10696092/diff/1/tests/html/js_interop_...
File tests/html/js_interop_1_test.dart (right):

https://chromiumcodereview.appspot.com/10696092/diff/1/tests/html/js_interop_...
tests/html/js_interop_1_test.dart:1: #library('JsInterop1Test');
On 2012/07/04 05:13:00, kasperl wrote:
> Add copyright notice.

Done.

https://chromiumcodereview.appspot.com/10696092/diff/1/tests/html/js_interop_...
tests/html/js_interop_1_test.dart:19: callback = expectAsync1((e) {
On 2012/07/04 05:13:00, kasperl wrote:
> Too much indentation: Use 2 spaces here.

Done.

https://chromiumcodereview.appspot.com/10696092/diff/1/tests/html/js_interop_...
tests/html/js_interop_1_test.dart:20: Expect.equals('hello', e.data);
On 2012/07/04 05:13:00, kasperl wrote:
> Too much indentation. Use 2 spaces here.

Done.

https://chromiumcodereview.appspot.com/10696092/diff/1/tests/html/js_interop_...
tests/html/js_interop_1_test.dart:22: });
On 2012/07/04 05:13:00, kasperl wrote:
> Don't indent this.

Done.

https://chromiumcodereview.appspot.com/10696092/diff/1/tests/html/js_interop_...
File tests/html/js_interop_2_test.dart (right):

https://chromiumcodereview.appspot.com/10696092/diff/1/tests/html/js_interop_...
tests/html/js_interop_2_test.dart:1: #library('JsInterop2Test');
On 2012/07/04 05:13:00, kasperl wrote:
> Add copyright notice.

Done.

https://chromiumcodereview.appspot.com/10696092/diff/1/tests/html/js_interop_...
tests/html/js_interop_2_test.dart:28: callback = expectAsync1((e) {
On 2012/07/04 05:13:00, kasperl wrote:
> The indentation is a bit messed up here too (all closures).

Done.

https://chromiumcodereview.appspot.com/10696092/diff/1/tests/html/js_interop_...
tests/html/js_interop_2_test.dart:41: Expect.equals('received', result);
On 2012/07/04 05:13:00, kasperl wrote:
> Check that port.call('fish') is null?

Done.

Powered by Google App Engine
This is Rietveld 408576698