Commit Graph

2071 Commits

Author SHA1 Message Date
iposva@google.com e045db6454 - Fix comment describing new test.
Review URL: https://codereview.chromium.org//10948008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12495 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 12:52:43 +00:00
iposva@google.com 820d2b33d5 - Fix the implementation of Random.nextBool() and add test.
Review URL: https://codereview.chromium.org//10919323

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12458 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-17 21:33:39 +00:00
efortuna@google.com 9163dfe93c revert 1204. Will investigate when I get a chance.
TBR=rnystrom
Review URL: https://codereview.chromium.org//10928216

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12413 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-15 01:21:41 +00:00
rnystrom@google.com 383488ec4f Update unittest to new package layout.
Review URL: https://codereview.chromium.org//10917275

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12404 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 21:12:17 +00:00
rnystrom@google.com 659a57df3e Revert "Make unittest follow the new package layout."
This reverts commit 38f7d16f373832a7bf889192af7845cb602aec01.

Review URL: https://codereview.chromium.org//10911318

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12400 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 19:43:10 +00:00
rnystrom@google.com 2ba81033a6 Make unittest follow the new package layout.
Review URL: https://codereview.chromium.org//10918240

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12396 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 18:22:24 +00:00
turnidge@google.com a28d475ff3 Implement more of the mirrors library, primarily stuff to do with types.
Highlights:

- Implement FunctionClassMirror, used to reflect on the class of
  function objects.

- Implement TypeVariableMirror, used to reflect on type variables.

- Implement TypedefMirror, used to reflect on typedefs.

- Implement returnType for MethodMirror

- Implement type for VariableMirror/ParameterMirror

- Added supporting functions to the dart embedding api:
  - Dart_ClassIsTypedef
  - Dart_ClassGetTypedefReferent
  - Dart_ClassIsFunctionClass
  - Dart_ClassGetFunctionClassSignature
  - Dart_FunctionReturnType
  - Dart_FunctionParameterType
  - Dart_VariableType
  - Dart_GetTypeVariableNames
  - Dart_LookupTypeVariable
  - Dart_IsTypeVariable
  - Dart_TypeVariableOwner
  - Dart_TypeVariableUpperBound

Other stuff:

- Fixed bug in Function::NumberOfImplicitParameters for signature
  functions.

- Chnaged the default upper bound for type variables to Object from
  Dynamic.  Discussed this with Gilad and Regis.

- Fixed some smaller problems in mirrors_impl.dart.
Review URL: https://chromiumcodereview.appspot.com//10916252

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12342 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 17:47:25 +00:00
ngeoffray@google.com 94f1c2ed10 Change our 'is int' check to use Math.floor instead of a smi check.
Review URL: https://chromiumcodereview.appspot.com//10912147

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12018 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 12:05:34 +00:00
ngeoffray@google.com a844d14874 Fix status files to make bots green.
Review URL: https://chromiumcodereview.appspot.com//10917112

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11936 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 11:41:59 +00:00
ngeoffray@google.com fce3e2ec01 Fix checked mode on browser.
Review URL: https://chromiumcodereview.appspot.com//10912109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11933 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 10:48:22 +00:00
ahe@google.com 233c007636 Update status file for dart2js checked mode.
We didn't use to test checked mode on browsers. Now we do.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11877 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 15:57:38 +00:00
kasperl@google.com 8bd4bf096b Update almost all tests (except co19) to use the new try-catch syntax.
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11492 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 08:11:41 +00:00
iposva@google.com fedcff55ed - Change "static final" to "static const" in the tests/ directory.
Review URL: https://chromiumcodereview.appspot.com//10871071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11350 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 22:21:20 +00:00
ager@google.com 722c1a3ce6 Deprecate Math object in corelib in favor of dart:math library.
Review URL: https://chromiumcodereview.appspot.com//10829459

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11155 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 14:33:01 +00:00
dgrove@google.com bacdd20e96 Continued deletion of frog.
Review URL: https://chromiumcodereview.appspot.com//10860071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11098 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 21:09:52 +00:00
turnidge@google.com 1da7c97936 A round of edits to make mirrors.dart more like our current working
proposal.
Review URL: https://chromiumcodereview.appspot.com//10854197

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10918 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 19:56:50 +00:00
dgrove@google.com de531b234a Move args from lib/ to pkg/ .
Review URL: https://chromiumcodereview.appspot.com//10831371

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10910 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 17:57:10 +00:00
gram@google.com 40ba5f137d Added the ability to get the names of the options in a set of parsed arguments, and the default value for an argument. These are useful so we can see what the user has explicitly set that is non-default behavior.
Review URL: https://chromiumcodereview.appspot.com//10828351

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10904 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 17:07:51 +00:00
alanknight@google.com 3122c09799 Move status file entries from tests/lib to pkg so as not to run known failing tests on the moved li…
Review URL: https://chromiumcodereview.appspot.com//10836272

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10772 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 22:02:27 +00:00
alanknight@google.com 2e5ddeab23 Move unittest tests underneath it in /pkg
Review URL: https://chromiumcodereview.appspot.com//10823332

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10770 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 21:12:43 +00:00
dgrove@google.com 747b22d3bc Move fixnum to from lib/ to pkg/ . Once pub.dartlang.org
is available, this package will likely be moved there.
Review URL: https://chromiumcodereview.appspot.com//10854162

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10769 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 20:33:16 +00:00
alanknight@google.com ce28be9d2f Move tests for things in /pkg into the right places for packages
Review URL: https://chromiumcodereview.appspot.com//10828310

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10688 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 23:05:20 +00:00
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
dgrove@google.com 8998e74536 Start moving non-platform libraries from lib/ to pkg/ .
Review URL: https://chromiumcodereview.appspot.com//10827227

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10655 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 16:26:41 +00:00
gram@google.com 8f4acb858a Add support for upper case in arguments.
Review URL: https://chromiumcodereview.appspot.com//10854133

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10607 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 21:52:54 +00:00
gram@google.com 31cfa3d5d4 Added ability to reset Mocks.
Review URL: https://chromiumcodereview.appspot.com//10855128

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10588 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 17:29:38 +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
gram@google.com 7186d947b6 Added support for multi-valued options (options that can occur more than once).
Review URL: https://chromiumcodereview.appspot.com//10855084

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10477 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-10 00:43:35 +00:00
alanknight@google.com 25179dc195 Date formatting with another dartj2s workaround
Review URL: https://chromiumcodereview.appspot.com//10830246

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10454 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 20:06:05 +00:00
alanknight@google.com 59dd96e9bb git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10427 260f80e4-7a28-3924-810f-c04153c831b5 2012-08-09 00:41:47 +00:00
alanknight@google.com 3041e7fafc Date formatting again with fixes
Does not import intl.dart twice, and does not attempt to directly sort the keys of a map, which dartj2s does not like (issue 4421).
Review URL: https://chromiumcodereview.appspot.com//10826216

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10426 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-09 00:20:55 +00:00
efortuna@google.com 875922a1a6 Revert 10419-10420.
Review URL: https://chromiumcodereview.appspot.com//10854051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10422 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-08 21:37:36 +00:00
alanknight@google.com f4a666d87e Fixes from adding date formatting
Review URL: https://chromiumcodereview.appspot.com//10834235

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10420 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-08 20:56:23 +00:00
alanknight@google.com 983721802b Add date formatting and parsing code.
Review URL: https://chromiumcodereview.appspot.com//10807096

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10419 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-08 20:37:51 +00:00
gram@google.com 02df7ce4f6 Mark negative test as fail for dartc.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10364 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-08 02:11:26 +00:00
gram@google.com 3c64ea372c Added the ability to tun off logging for individual behaviors.
Added stepwise validation support.
Review URL: https://chromiumcodereview.appspot.com//10827201

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10363 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-08 00:50:00 +00:00
rnystrom@google.com 0bc9b19740 Rename BadNumberFormatException -> FormatException.
Review URL: https://chromiumcodereview.appspot.com//10850034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10354 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 20:56:59 +00:00
gram@google.com 2edb59744d Remove use of deprecated test functions.
Review URL: https://chromiumcodereview.appspot.com//10828139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10238 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 16:51:21 +00:00
gram@google.com e616d2b386 Ability to guard callbacks that may never get called (protectAsync*), and simplified and improved handling of exceptions.
Review URL: https://chromiumcodereview.appspot.com//10830128

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10152 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 00:42:53 +00:00
gram@google.com a4b01c388e Fix issue 4227 - unittest.dart silently consumes exceptions when expectAsync is active.
Review URL: https://chromiumcodereview.appspot.com//10834098

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10103 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 01:00:32 +00:00
gram@google.com 547b8c0055 Added bad regexp callmatcher mock test.
Review URL: https://chromiumcodereview.appspot.com//10826086

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10088 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 21:29:59 +00:00
gram@google.com 27846b0846 Improved the way we generate mismatch descriptions.
matches() methods can now return additional state that is used by describeMismatch(). This adds a small tax to the happy path, but makes the unhappy path quite a bit more efficient as well as providing better error messages.

Related to this, expect() can now be passed a verbose flag. Currently this is used by throwsA/returnsNormally to provide stack traces from the actual exception but could be used for other things too.

The tests for the Mock classes have been changed to be normal tests, not 'meta' tests. 

A couple of other minor fixes.
Review URL: https://chromiumcodereview.appspot.com//10832058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10078 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 18:12:49 +00:00
rmacnak@google.com 2353835d5b Added InterfaceMirror.newInstance().
Review URL: https://chromiumcodereview.appspot.com//10834056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10020 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 17:48:47 +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
smok@google.com ac8d991870 dart2dart
Several fixes for more robust renaming of type annotations and Send-s:
Correct renaming of class interfaces with type arguments, renaming
of global functions, constructor and named constructor calls, static
field accesses.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10003 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 05:27:58 +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
rmacnak@google.com 99ad7f4170 Added ClosureMirror to dart:mirrors. Added Dart_ClosureFunction to the
embedding API. ClosureMirrors currently implement answering the closure's
function and applying the closure.
Review URL: https://chromiumcodereview.appspot.com//10800065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9860 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 17:59:12 +00:00
rmacnak@google.com bf0005b70a The mirror tests made the invalid assumption that the library with the tests
will be the root library at run time. They should instead get the library
mirror by name.
Review URL: https://chromiumcodereview.appspot.com//10805085

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9858 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 17:22:50 +00:00
rmacnak@google.com a81ee512b7 Disable mirror tests on Dartium to fix the build. TBR.
Review URL: https://chromiumcodereview.appspot.com//10815067

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9833 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-23 23:42:52 +00:00