Commit Graph

138 Commits

Author SHA1 Message Date
dgrove@google.com c265902bea Move unittest from lib to pkg.
Review URL: https://chromiumcodereview.appspot.com//10836241

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10685 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 22:36:59 +00:00
efortuna@google.com 1d14fb856e Un-enable Opera.
Review URL: https://chromiumcodereview.appspot.com//10826255

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10543 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 23:36:51 +00:00
efortuna@google.com 5072b18d98 Enable Opera testing (!!!).
Review URL: https://chromiumcodereview.appspot.com//10832239

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10513 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 16:50:34 +00:00
sigmund@google.com 1d950db569 Add Timer implementation for dart2js. Also moves tests to appropriate location.
Review URL: https://chromiumcodereview.appspot.com//10830230

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10460 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 20:58:07 +00:00
ager@google.com 7584aafb47 Fix negative test by not complicating it by using the unit test framework.
R=kasperl@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10828145

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10215 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 08:06:27 +00:00
ager@google.com 50932d31c8 Fix dartc status file after isolate changes.
R=kasperl@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10834147

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10212 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 07:51:20 +00:00
ager@google.com 6a4ce8c82f Fix type annotation issue.
R=kasperl@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10829162

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10211 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 07:39:48 +00:00
ager@google.com 4531c0c770 Remove old isolate API and update all code in the repository to use
the new API.

R=kasperl@google.com,sigmund@google.com,turnidge@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10837070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10210 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 07:24:29 +00:00
smok@google.com 4412f8653f dart2dart Skip non-language tests, leave yaml too.
Review URL: https://chromiumcodereview.appspot.com//10823079

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10014 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 13:50:54 +00:00
antonm@google.com 74d17a16f9 dart2dart compiler support.
R=whesse@google.com

Review URL: https://chromiumcodereview.appspot.com//10809069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9880 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 11:20:41 +00:00
sigmund@google.com 7beec61faa fix isolate.status: oops, all browsers, not just drt
TBR=efortuna@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10693033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9221 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 20:53:16 +00:00
sigmund@google.com 5548949d3d update isolate.status: triagge what works and what doesn't work in dart2js
Review URL: https://chromiumcodereview.appspot.com//10694023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9219 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-28 20:48:25 +00:00
gram@google.com 9b79e27e17 Some unit test fixes:
Fixed a couple of issues in the ensureInitialized() function.
Added expectAsyncUntil methods to support callbackDone style tests.
Split the matcher tests up so that we can exclude those that use isInstance
from the environments where they don't work.
Eliminated the need for two functions calls in throws/throwsA.
Fixed some tests.
Changed some uses of Expect to expect.
Fixed a bug when using expectAsync with a count of zero.
Fixed a bug where we weren't updating the call count in invoke0/1/2.
Made expect behave sensibly in cases where the user doesn't supply a 
matcher (e.g. expect(foo, 0)). USing the predicate form with a 
reason now requires a named parameter.
Review URL: https://chromiumcodereview.appspot.com//10544167

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8753 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-15 23:17:57 +00:00
gram@google.com 0aceb0c410 Revert 8668
Review URL: https://chromiumcodereview.appspot.com//10539163

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8673 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 17:27:21 +00:00
gram@google.com 0a8476dfcc Some unit test fixes:
Fixed a couple of issues in the ensureInitialized() function.
Added expectAsyncUntil methods to support callbackDone style tests.
Split the matcher tests up so that we can exclude those that use isInstance
from the environments where they don't work.
Eliminated the need for two functions calls in throws/throwsA.
Fixed a couple of tests.
Review URL: https://chromiumcodereview.appspot.com//10545167

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8668 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-14 16:40:28 +00:00
floitsch@google.com 71f123f9e9 Update status file.
Review URL: https://chromiumcodereview.appspot.com//10533105

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8546 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 12:49:42 +00:00
floitsch@google.com af0fbc6d5f Give static functions that have a getter a name.
This is necessary so we can use them in spawnFunction.

Fixes issue 3244.

Review URL: https://chromiumcodereview.appspot.com//10539104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8540 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 11:49:12 +00:00
kasperl@google.com 78326ef863 Update status (more passing tests on IE).
TBR'ed.

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10538078

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8485 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 10:02:12 +00:00
kasperl@google.com b21cfb024e Unskip the last tests covered by http://dartbug/3304.
TBR'ed.

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10532083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8484 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-11 08:49:10 +00:00
gram@google.com d2efc58b00 New expectation functions plus convert old tests to use these.
Review URL: https://chromiumcodereview.appspot.com//10441104

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8355 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 20:15:58 +00:00
kasperl@google.com 9b510ecbf8 Adjust status files after r8332.
R=floitsch@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10537027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8334 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 14:05:54 +00:00
kasperl@google.com 2bae781a21 Fix IE status files.
R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10442083

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8105 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 14:24:48 +00:00
kasperl@google.com d9d1eb2a75 Update status files to make IE build bots green.
R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10453074

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8086 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 07:30:26 +00:00
ngeoffray@google.com e2c7c6eaee Update status files for dart2js/mac/safari.
Review URL: https://chromiumcodereview.appspot.com//10442081

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8085 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 07:26:01 +00:00
kasperl@google.com 5d23a99d71 Skip tests that time out on IE.
R=ngeoffray@google.com
BUG=http://dartbug.com/3304
TEST=

Review URL: https://chromiumcodereview.appspot.com//10444084

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8084 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 05:59:16 +00:00
turnidge@google.com a339f45296 Add a regression test for bug 2235.
Review URL: https://chromiumcodereview.appspot.com//10443067

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8081 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 21:36:42 +00:00
ngeoffray@google.com 2cb4416340 Use the typedef arity to know how to invoke a closure given by the dom.
Review URL: https://chromiumcodereview.appspot.com//10441071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8067 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 15:53:54 +00:00
ngeoffray@google.com 5ca4106a51 Skip dart2js/firefox until we fix issue 2615.
Review URL: https://chromiumcodereview.appspot.com//10449049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8045 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 09:41:29 +00:00
ngeoffray@google.com 50debf9fe0 It's system: macos, not system: mac
Review URL: https://chromiumcodereview.appspot.com//10458010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8039 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 09:08:12 +00:00
ngeoffray@google.com 3542e0bc07 Status file update to have dart2js/chrome/mac green.
Review URL: https://chromiumcodereview.appspot.com//10459006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8037 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-29 08:55:40 +00:00
turnidge@google.com ee4309c783 Skip some vm tests on other systems. They were timing out instead of
failing, which was making the buildbot sad.
Review URL: https://chromiumcodereview.appspot.com//10424005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7920 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 19:17:39 +00:00
turnidge@google.com 05b5d44b0e spawnUri. Take two. This time I'll wait for Anton before committing :-).
See original change 7756 for description.
Review URL: https://chromiumcodereview.appspot.com//10407042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7917 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-23 18:32:51 +00:00
gram@google.com 9248731b39 Change asyncTest/callbackDone style tests to use the new expectAsync/
guardAsync form, and fix a couple of issues in the unit test library
related to these.
Note: this CL covers the changes in the tests directory. There are a few
changes in utils and samples; these will de done in a separate CL.
Review URL: https://chromiumcodereview.appspot.com//10412015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7877 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-22 20:37:25 +00:00
hausner@google.com 048b8bde32 More String + elimination in tests
Worst offender was standalone test suite
Review URL: https://chromiumcodereview.appspot.com//10414002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7762 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 21:03:59 +00:00
turnidge@google.com 76d4586dea Revert my last change.
Review URL: https://chromiumcodereview.appspot.com//10332257

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7757 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 18:35:04 +00:00
turnidge@google.com 6a8c82db83 Implement spawnUri from dart:isolate. This function allows us to
launch an isolate running a different script.  Finally.

Reviewers: This isn't as hard to review as it looks.  Dive right in!

Siggi: Take a look at my test status file changes and make sure I'm
excluding the right stuff.

Much of the churn in the CL comes from moving ownership of the
import_map.  It used to be set per-library and is now set per-isolate.
This caused a lot of superficial diffs.

DART EMBEDDING API CHANGES:

- Dart_IsolateCreateCallback now takes a script_uri and main argument
  instead of a name_prefix argument.  The script_uri argument allows
  the callback to launch different scripts.  The main argument is used
  in creating the isolate debug name.

- Dart_CreateIsolate now takes script_uri and main arguments.  These
  are used to build the isolate's debug name.

- Dart_LibraryTagHandler, Dart_LoadScript, and Dart_LoadLibrary no
  longer take an import_map.

- Added Dart_SetImportMap.

- Added Dart_RootLibrary to provide access to the root library for the
  current isolate.

OTHER STUFF

Add a couple of tests for spawnUri -- the existing tests assume that
scripts end in a .js suffix which isn't going to work out for us.

Changed how the debug name for isolates get built a bit.

Refactored bin/main.cc a bit.  Fixed some problems with error handling
while creating isolates.

Minor refactoring in builtin.dart to always pass is_windows rather
than relying on it being squirreled away.
Review URL: https://chromiumcodereview.appspot.com//10386107

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7756 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 18:22:10 +00:00
vsm@google.com 9be4ac00ed Move dart:dom to dart:dom_deprecated
Brian: Can you please look at the editor / dartc changes?

Bob: Can you look at the apidoc changes?

Stephen/Pavel: Can you guys look at the rest?

Pavel: I will update, test, and land your Dartium CL along with this change.

Review URL: https://chromiumcodereview.appspot.com//10389097

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7587 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-13 04:10:43 +00:00
sigmund@google.com d6c2cca796 test rename overhaul: step 6 - isolate tests
Review URL: https://chromiumcodereview.appspot.com//10247004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7088 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 17:06:51 +00:00
sigmund@google.com cb8056e881 (second try) unittest steps 3, 4: removes TestFramework.dart
Review URL: https://chromiumcodereview.appspot.com//10222013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6980 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 22:31:04 +00:00
sigmund@google.com a7e7679286 Revert "unittest step 3 and 4: remove TestFramework.dart, make test.dart use"
Review URL: https://chromiumcodereview.appspot.com//10226008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6968 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 19:42:26 +00:00
sigmund@google.com edac4ecb27 unittest step 3 and 4: remove TestFramework.dart, make test.dart use
unittest.dart, so tests written with it will work both in the vm and browsers.

This involved a few changes:
- removing uses of TestFramework, use unittest instead (in test.dart and some
  isolate tests)
- making test.dart use unittest and html_config to wrap standalone tests as
  browser tests. This is done for tests written with or without unittest
- unittest: trap errors at the top-level, so we can detect errors during setup,
  but also to detect normal failures in tests that are wrapped by test.dart.

Review URL: https://chromiumcodereview.appspot.com//10153005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6963 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 18:37:23 +00:00
sigmund@google.com 24ab87d445 isolate: fix how we get the current script now that frog automatically wraps the
app to run on DOMContentLoaded.

Review URL: https://chromiumcodereview.appspot.com//10050035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6959 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 18:07:36 +00:00
ahe@google.com 9eac6a5748 Remove frogsh.
Review URL: https://chromiumcodereview.appspot.com//10164004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6840 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-23 13:26:06 +00:00
sigmund@google.com 656e98150b unittest step2: bye bye to multiple entrypoints for unittest
Review URL: https://chromiumcodereview.appspot.com//10037027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6480 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-12 21:38:25 +00:00
sigmund@google.com cca364ce76 change status files to make it possible to run test.py -c frog,dart2js -r none.
Except for standalone, this mostly skips all other tests. The configurations
frog_none and dart2js_none these have been ignored for now by the bots, enabling
those tests should be done as needed.

Review URL: https://chromiumcodereview.appspot.com//10042001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6382 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 20:56:37 +00:00
sigmund@google.com 1087154630 fix bug in isolate code, reenable isolate tests
Review URL: https://chromiumcodereview.appspot.com//9967024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6375 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-10 18:43:27 +00:00
dgrove@google.com ca61f09608 Move unittest into lib, and put it into the SDK.
Review URL: http://codereview.chromium.org//9802015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5956 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-28 22:26:14 +00:00
efortuna@google.com c8e35dbeb1 Rename test.dart component to specify compiler + runtime.
Review URL: https://chromiumcodereview.appspot.com//9838068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5893 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-27 18:40:41 +00:00
ahe@google.com 87a64a1be8 Add "mock" compilation feature to dart2js and use it to improve test coverage.
Review URL: https://chromiumcodereview.appspot.com//9813012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5743 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-22 10:34:03 +00:00
ager@google.com 2aba281fa6 Remove backwards compatibility 'win32' name from test status files.
Using win32 instead of windows was temporary to be compatible with
the old python script. That is now gone.

R=antonm@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9817019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5736 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-21 22:06:52 +00:00