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

Issue 35173004: "Fix" dart:js tests in IE9 (Closed)

Created:
7 years, 2 months ago by justinfagnani
Modified:
7 years, 2 months ago
Reviewers:
Jacob
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -24 lines) Patch
M sdk/lib/js/dart2js/js_dart2js.dart View 1 chunk +6 lines, -3 lines 0 comments Download
M tests/html/js_test.dart View 11 chunks +38 lines, -21 lines 4 comments Download

Messages

Total messages: 5 (0 generated)
justinfagnani
7 years, 2 months ago (2013-10-23 04:05:30 UTC) #1
Jacob
https://codereview.chromium.org/35173004/diff/1/tests/html/js_test.dart File tests/html/js_test.dart (right): https://codereview.chromium.org/35173004/diff/1/tests/html/js_test.dart#newcode183 tests/html/js_test.dart:183: // Some test are either causing other test to ...
7 years, 2 months ago (2013-10-23 05:15:05 UTC) #2
Jacob
lgtm once comments are addressed.
7 years, 2 months ago (2013-10-23 05:15:25 UTC) #3
justinfagnani
Committed patchset #1 manually as r29125 (presubmit successful).
7 years, 2 months ago (2013-10-23 21:13:18 UTC) #4
justinfagnani
7 years, 2 months ago (2013-10-23 21:23:57 UTC) #5
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/35173004/diff/1/tests/html/js_test.dart
File tests/html/js_test.dart (right):

https://chromiumcodereview.appspot.com/35173004/diff/1/tests/html/js_test.dar...
tests/html/js_test.dart:183: // Some test are either causing other test to fail
in IE9, or they are failing
On 2013/10/23 05:15:05, Jacob wrote:
> add a bug# to track down the real cause.

Done.

https://chromiumcodereview.appspot.com/35173004/diff/1/tests/html/js_test.dar...
tests/html/js_test.dart:459: //
expect(node.instanceof(context['HTMLDivElement']), isTrue);
On 2013/10/23 05:15:05, Jacob wrote:
> i would remove instanceof based checks.  JS instanceof is really flaky and
> nobody relies on it . Perhaps instead just do some duck typing checks such as
> validate that the class has an innerHTML, addEventListener method, etc.
> Those sorts of checks are much more likely to work cross browser.

I'm going to do an overhaul of this test in it's own CL so that it's easy to
review independent of other changes. I'll remove the instanceof checks then.

Powered by Google App Engine
This is Rietveld 408576698