Commit graph

35 commits

Author SHA1 Message Date
Vijay Menon
9732138317 Testing support for FF and Safari
Also travis support for testing FF.  See:

https://travis-ci.org/dart-lang/sdk/builds/159331789

On FF 48, 1965 out of 1979 tests are passing.  Run locally:
DDC_BROWSERS=Firefox npm test

On Safari 10 (tech preview), it fails immediately due to a static method named "caller".  We disallow it as a field, but not a method right now.  If I hack that out, 1972 out of 1979 tests appear to pass.

Run locally by installing tech preview and running:
DDC_BROWSERS=Safari SAFARI_BIN=/Applications/Safari\ Technology\ Preview.app/Contents/MacOS/Safari\ Technology\ Preview npm test
R=jmesserly@google.com, rnystrom@google.com

Review URL: https://codereview.chromium.org/2334763002 .
2016-09-14 08:41:43 -07:00
John Messerly
c1139934a7 fix #626, add AMD module format and make it default
R=nweiz@google.com, vsm@google.com

Review URL: https://codereview.chromium.org/2249233002 .
2016-08-25 09:39:36 -07:00
Vijay Menon
0516f9f545 Regression test dart:mirrors
About 50 tests pass right now.  A bunch more fail.

See #199

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/2256393002 .
2016-08-19 08:27:20 -07:00
John Messerly
0aa5cbd128 fix #620, infer the input files from sources
also simplifies build of packages used by our tests
this caused a bunch of tests that use parts to start passing

R=nweiz@google.com

Review URL: https://codereview.chromium.org/2234343003 .
2016-08-11 13:19:36 -07:00
Vijay Menon
e8e19b4c5a Verify status of statically failing tests
This should catch tests that suddenly start failing (or passing).

This is an admittedly contrived approach to track compilation failures in
the same runtime logic: the statically failing tests are now compiled
to a trivial output that throws a particular exception.  Ideally, we
wouldn't run these, but it's beneficial to keep status in the same
place.

On my laptop, this only adds ~8s to presubmit (which takes ~2:30 min).

Ideas on alternative approaches welcome.  :-)

R=jmesserly@google.com, leafp@google.com

Review URL: https://codereview.chromium.org/2079373002 .
2016-06-22 06:25:48 -07:00
Bob Nystrom
1e5b3af2e0 Move generated files to gen/.
- The generated SDK goes into gen/patched_sdk.
- Expanded multitests go into gen/codegen_tests.
- Compiled tests go into gen/codegen_output.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1988503002 .
2016-05-18 13:48:10 -07:00
Harry Terkelsen
382996f41c update dart:math
BUG=
R=rnystrom@google.com

Review URL: https://codereview.chromium.org/1967773005 .
2016-05-12 09:03:11 -07:00
John Messerly
d2379063e8 increase mocha timeout
R=rnystrom@google.com

Review URL: https://codereview.chromium.org/1973763002 .
2016-05-11 17:28:00 -07:00
Bob Nystrom
e535970604 Update dart:convert and dart:core Uri.
I started trying to get the convert tests all cleaned up and passing
but realized I was going down a rathole. So, for now, all of the slow
or failing ones are just skipped.

BUG=
R=sra@google.com

Review URL: https://codereview.chromium.org/1965563003 .
2016-05-10 10:25:38 -07:00
Jacob Richman
9520e96340 Switch to actual unittest, stack trace, and path packages. Tag tests as failing that were ignored due to the incomplete unittest library. Make running of unittests a bit more robust by wrapping them inside a mocha test to avoid unpredictable behavior due to interleaving async mocha and unittests.
BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1956513004 .
2016-05-06 12:28:44 -07:00
Stephen Adams
be0d779177 Add corelib tests
99 have compile errors
265 generate code
94 fail

We will triage after updating the sdk.

R=vsm@google.com

Review URL: https://codereview.chromium.org/1945153002 .
2016-05-04 11:09:28 -07:00
John Messerly
733773476d instantiate generic tear-offs, fixes #525
R=het@google.com

Review URL: https://codereview.chromium.org/1930323004 .
2016-04-29 16:41:24 -07:00
Vijay Menon
9d49469af4 Reenable typed_data and html tests
TBR=jacobr@google.com

Review URL: https://codereview.chromium.org/1924423002 .
2016-04-28 13:00:07 -07:00
Jacob Richman
efa2303c64 Add all dart:html tests from the sdk to test/codegen. All tests are added except for js_array_test.dart and js_dart_to_string_test.dart which have to be stripped out for now due to failures.
BUG=
R=vsm@google.com

Review URL: https://codereview.chromium.org/1930043002 .
2016-04-28 12:30:25 -07:00
Vijay Menon
acc4d6867d Stop concatenating all tests
R=sra@google.com

Review URL: https://codereview.chromium.org/1928443006 .
2016-04-28 11:29:38 -07:00
John Messerly
0c148ecef4 Implement modular compilation
Highlights
* compile one module at a time
* use summaries to speed up compiles
* use command runner so we can add more commands later
* some long needed renames and file organization
* various other technical debt has been addressed

Lowlights
* lost node.js runner/tests (node output format still supported)
* possibly lost some closure support/workarounds (format still supported)
* needs more end-to-end tests of the new system

R=vsm@google.com

Review URL: https://codereview.chromium.org/1879373004 .
2016-04-14 11:28:12 -07:00
Vijay Menon
ba92223ef9 Remove harmony flag for travis runs
This appears to trigger our generator breakage.

TBR=jmesserly@google.com

Review URL: https://codereview.chromium.org/1853433003 .
2016-03-31 15:10:11 -07:00
Vijay Menon
a4d4a8dd54 Infra for running lib tests
This is in prep for #441

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1673863002 .
2016-02-05 14:49:16 -08:00
Olivier Chafik
3886194414 Generate _runtime.js from dart (https://github.com/dart-lang/dev_compiler/issues/310)
The following part files were ported from the original .js (lib/runtime/dart/_foo.js -> input_sdk/private/foo.dart):
- input_sdk/private/rtti.dart
- input_sdk/private/types.dart
- input_sdk/private/classes.dart
- input_sdk/private/errors.dart
- input_sdk/private/generators.dart
- input_sdk/private/operations.dart
- input_sdk/private/runtime.dart

Notes:
- Introduced genericTypeConstructor intrinsic: `JS('', '#(type)', genericTypeConstructor(List))` generates `core.List$(type)`
- Used new JS quasiquotes everywhere
- Depends on new internal `@JSExportName` annotation to alias symbols like dart.{as, is, const, assert, export, implements, throw, async, dynamic, void} (see https://codereview.chromium.org/1580413002/)

BUG=
R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1530563003 .
2016-01-21 00:45:31 +00:00
Vijay Menon
86ef3092a1 Run browser tests on Atom/Electron
Tested on travis here: https://travis-ci.org/dart-lang/dev_compiler/builds/96609818

Note, electron shows up in the log as: Chrome 47.0.2526

This fixes #395

R=ochafik@google.com

Review URL: https://codereview.chromium.org/1521283003 .
2015-12-14 06:25:12 -08:00
Vijay Menon
79e6f96623 Don't test on 'Chrome' by default
Plain Chrome is way old on travis (37).

TBR=jmesserly@google.com

Review URL: https://codereview.chromium.org/1518103002 .
2015-12-11 12:30:32 -08:00
Vijay Menon
6ecadc8c19 Run tests on Chrome stable by default
This also disables destructuring by default as Chrome 47 (current
stable) does not support.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1507343013 .
2015-12-11 12:18:20 -08:00
John Messerly
bea9ae786a add language tests & run them in karma 2015-09-16 16:00:46 -07:00
Vijay Menon
b90511b88c Omit Chrome stable in travis for now
The default Chrome in travis is Chrome *37*.  Disabling - will a send
a separate CL to fix properly.

TBR=jmesserly@google.com

Review URL: https://codereview.chromium.org/1331963002 .
2015-09-10 09:23:37 -07:00
Vijay Menon
febc95eead Run tests on Chrome stable and canary
As of Chrome 45, we can run on stable and canary.  Karma appears to
run these in parallel - I see little difference in wall clock time on
my laptop.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1310753007 .
2015-09-10 09:14:45 -07:00
John Messerly
c4b754b041 use the real matchers for running language tests
R=vsm@google.com

Review URL: https://codereview.chromium.org/1321683004 .
2015-08-28 09:27:36 -07:00
Vijay Menon
3fcc78e070 Suppress console logs when testing locally
See #278 - not really a fix though.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1275053003 .
2015-08-06 10:14:12 -07:00
John Messerly
8422d7ab48 fix language_tests.js to use strict mode
we weren't running a bunch of tests on the bots :|
amazingly, none were broken yet
this also fixes karma.conf log level, and disables some spammy prints from one of the tests

R=vsm@google.com

Review URL: https://codereview.chromium.org/1257233008 .
2015-08-03 14:08:28 -07:00
John Messerly
9137a4538c fixes #221, initial sync*, async, async* implementation
also fixes #270

R=vsm@google.com

Review URL: https://codereview.chromium.org/1243503007 .
2015-07-28 16:52:23 -07:00
Vijay Menon
ebe7d54efd Use standard harmony flag
This fixes current breakage with Chrome 46.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1235393004.
2015-07-16 09:33:10 -07:00
Vijay Menon
297a159aa6 Enable Chrome Canary browser tests on Travis
I created a karma branch to test this on travis - see bottom of the log here:
https://travis-ci.org/dart-lang/dev_compiler/jobs/68106290

R=jmesserly@google.com

Review URL: https://codereview.chromium.org/1205043002.
2015-06-24 10:21:11 -07:00
Vijay Menon
cf793cbe3f Disable karma on travis
I suspect the version of chromium on travis is too old.

TBR=jacobr@google.com

Review URL: https://codereview.chromium.org/1054283004
2015-04-20 20:25:37 -07:00
Vijay Menon
6f1f1bfc99 Travis workaround
Not sure how to test this locally.  Trying again.  If this breaks, I can just disable the travis part.

TBR=jacobr@google.com

Review URL: https://codereview.chromium.org/1096253002
2015-04-20 20:02:11 -07:00
Vijay Menon
6fda542355 Use travis's version of chromium
TBR=jacobr@google.com

Review URL: https://codereview.chromium.org/1100653002
2015-04-20 19:43:54 -07:00
Vijay Menon
f79e110387 Automated runtime tests using Karma
To use:

1. Install node (e.g., install from nodejs.org or sudo apt-get install npm)
2. npm install
3. npm test

R=jacobr@google.com

Review URL: https://codereview.chromium.org/1092213003
2015-04-20 19:31:18 -07:00