Commit Graph

25510 Commits

Author SHA1 Message Date
ager@google.com 4a2dc9f4cb Update status files after fixes.
R=ngeoffray@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12376 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 11:21:56 +00:00
rnystrom@google.com 3c051bf78c Disable dartdoc_test on dartium.
Review URL: https://codereview.chromium.org//10909222

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12360 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 01:14:21 +00:00
rnystrom@google.com f3f22d89e9 Fail dartc dartdoc test.
Review URL: https://codereview.chromium.org//10905280

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12356 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 22:05:23 +00:00
rnystrom@google.com 8ee669bb71 Move dartdoc tests into dartdoc.
Review URL: https://codereview.chromium.org//10909214

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12352 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 21:15:39 +00:00
rnystrom@google.com 85a7fb9e55 Remove unneeded _IN_SDK stuff in dartdoc.
Review URL: https://codereview.chromium.org//10905276

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12350 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 21:01:59 +00:00
alanknight@google.com 2748b083f0 Add test that uses the basic example code
Review URL: https://codereview.chromium.org//10914272

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12349 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 19:58:16 +00:00
alanknight@google.com 88d3a194d5 dart:io usage still fails on dartc due to 5143
Review URL: https://codereview.chromium.org//10919269

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12346 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 18:33:56 +00:00
alanknight@google.com 282a347822 Add async initialization for Intl.message and an example
Review URL: https://chromiumcodereview.appspot.com//10915215

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12345 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 18:20:29 +00:00
rnystrom@google.com a3872b3f4c Fix dartdoc editor integration.
Review URL: https://codereview.chromium.org//10914267

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12343 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 17:48:30 +00:00
rnystrom@google.com 05dadf490e Reorganize dartdoc to new package layout.
Review URL: https://codereview.chromium.org//10919260

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12338 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 16:49:48 +00:00
scheglov@google.com ea65bbb961 Issue 3553. Stop treating static final variables as constants
http://code.google.com/p/dart/issues/detail?id=3553
http://code.google.com/p/dart/issues/detail?id=3476

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12336 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 15:49:07 +00:00
kasperl@google.com 1b994e881f Change RegExp constructor to insist on proper named optional parameters.
R=bak@google.com,lrn@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12329 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 14:00:32 +00:00
kasperl@google.com 997e534c28 Change Duration to take proper named optional parameters.
R=bak@google.com,lrn@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12314 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 11:17:31 +00:00
ahe@google.com 952ebb3a50 Enable wrapper-less browser tests on selenium.
Also fix bug 4631.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12295 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 04:14:47 +00:00
rnystrom@google.com 8b5b96978b Move logging to the new package layout.
Review URL: https://codereview.chromium.org//10908227

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12293 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-13 02:05:15 +00:00
rnystrom@google.com e11b3b82fe Make args package follow new layout.
Review URL: https://codereview.chromium.org//10919249

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12284 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 21:31:42 +00:00
rnystrom@google.com f2a1253e98 Update htmlescape to new package layout.
Review URL: https://codereview.chromium.org//10910239

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12283 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 21:28:09 +00:00
rnystrom@google.com 1d9d8bab65 Take external patch from https://chromiumcodereview.appspot.com/10918056/.
Review URL: https://codereview.chromium.org//10933052

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12278 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 19:26:49 +00:00
gram@google.com 21b7ffba73 Fix issue 4191.
Review URL: https://chromiumcodereview.appspot.com//10913135

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12276 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 18:30:31 +00:00
bak@google.com 919055360a Changed interfaces to abstract classes where possible in {lib,samples,pkg}
Review URL: https://chromiumcodereview.appspot.com//10928139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12255 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 10:58:25 +00:00
kasperl@google.com 55140fd125 Remove support for operator negate and replace occurrences with unary
operator -.

In the VM, I have disabled the operator negate support in the parser but I
have not removed the keyword because the token is used in quite a few other
places.

R=ahe@google.com,iposva@google.com,hausner@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12233 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 05:29:03 +00:00
ngeoffray@google.com d2f9fcb734 Collect getters in a FunctionSet while resolving.
Review URL: https://chromiumcodereview.appspot.com//10911181

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12184 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 11:37:28 +00:00
ahe@google.com d1cb4358a2 Run dart2js tests unmodified in drt.
Review URL: https://chromiumcodereview.appspot.com//10918168

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12182 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 11:16:21 +00:00
lrn@google.com f52c24b62f Rename NoSuchMethodException to NoSuchMethodError.
Moved NoSuchMethodError to errors.dart.
No changes in co19 tests, but test status updated.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12172 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 09:52:25 +00:00
ahe@google.com 0e4bf23853 Revert "Run dart2js tests unmodified in browser."
This reverts r12164, r12166, r12167, and r12169.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12170 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 09:05:52 +00:00
ahe@google.com b16a22a9b7 Do not call showErrorAndExit "out" of order
Review URL: https://chromiumcodereview.appspot.com//10908193

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12169 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 08:55:42 +00:00
ahe@google.com 44e47bd1d5 Async notification of test failure is needed
Review URL: https://chromiumcodereview.appspot.com//10910190

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12167 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 08:27:51 +00:00
ahe@google.com 8fca6e2f8c Fail on exceptions
Review URL: https://chromiumcodereview.appspot.com//10917186

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12166 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 08:13:48 +00:00
ahe@google.com 9945675a54 Attempt to fix timeout of failing selenium tests.
Review URL: https://chromiumcodereview.appspot.com//10910188

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12164 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 08:07:27 +00:00
ahe@google.com 7d55ed7fdf Run dart2js tests unmodified in browser.
Review URL: https://chromiumcodereview.appspot.com//10919098

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12159 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 07:00:24 +00:00
brianwilkerson@google.com 2bda2a7c16 Add meta to the SDK
Review URL: https://chromiumcodereview.appspot.com//10924003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12150 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 21:43:07 +00:00
gram@google.com 9b53e02585 Fix issue 2933 - if an exception is thrown before we start the first test, but after the testcase is created, don't pass the error to the test case but treat it as an uncaught error.
Review URL: https://chromiumcodereview.appspot.com//10909123

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12077 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 22:55:00 +00:00
alanknight@google.com e7b27a813d Oops, forgot to fix status file when renaming tests
Review URL: https://chromiumcodereview.appspot.com//10913142

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12068 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 21:18:30 +00:00
alanknight@google.com ddbe245a61 Split date formatting tests in two to avoid timeouts
Review URL: https://chromiumcodereview.appspot.com//10905156

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12065 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 20:51:05 +00:00
gram@google.com fbcfefda5b Fix 80 column layout in html_enhanced_config.
Review URL: https://chromiumcodereview.appspot.com//10928057

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12050 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 18:01:50 +00:00
ngeoffray@google.com 13dd7022b5 num implements Comparable and Hashable.
Review URL: https://chromiumcodereview.appspot.com//10916172

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12037 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 14:20:36 +00:00
lrn@google.com 978c3f6da6 Move dart:web to pkg:htmlescape.
Remove the dart:web library from the VM.
Remove reference to web library from libraries.dart.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12023 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 12:30:55 +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
kasperl@google.com 9beb871852 Get rid of a lot of () for getters.
R=bak@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12017 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 11:50:07 +00:00
lrn@google.com 4e8426a5b4 Remove some exceptions from mock.dart.
This is the first step towards removing mock.dart and all non-patch files
from dart2js.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12012 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 10:52:39 +00:00
ngeoffray@google.com 9d2f296c5a Fix status files for browser checked mode.
Review URL: https://chromiumcodereview.appspot.com//10905139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11998 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 22:31:27 +00:00
gram@google.com a1eecbbc65 Added support for layout render tests. These use expected values for the text render output from DumpRenderTree. When running a test in DRT the testrunner will see if there is a file with a .render extension in the same directory as the test file and with the same base file name. If so it will do additional checks of the rendered layout.
Here is a simple example test:

#library('sample');
#import('dart:html');
#import('pkg:unittest/unittest.dart');

main() {
  group('foo', () {
    test('test 1', () {
      document.body.nodes.add(new Element.html("<p>Test 1</p>"));
    });
    test('test 2', () {
      document.body.nodes.add(new Element.html("<p>Test 2</p>"));
    });
  });
}

And a sample matching .render file:

[foo test 1]
RenderBlock {P} at (0,0) size 284x20
  RenderText {#text} at (0,0) size 38x19
    text run at (0,0) width 38: "Test 1"
[foo test 2]
RenderBlock {P} at (0,0) size 284x20
  RenderText {#text} at (0,0) size 38x19
    text run at (0,0) width 38: "Test 2"

Note that the render content is only the content inside the <body> element, not including the body element itself.

testrunner can generate render files itself if you use the --generate-renders flag.

Also in this change - rename Configuration.log to trace, to avoid clash with the math log() function.
Review URL: https://chromiumcodereview.appspot.com//10914049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11994 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 21:51:24 +00:00
hausner@google.com e0ed54ea8e Add named constructor name checking
Named constructors may not clash with any other class members.
Add a check but enable it only when --construcotr_name_check
runtime flag is passed to the VM.

Eliminate one named constructor in Process class in core library,
as well as a couple of cases in dart2js.

The dart2js team may want to rename the constructors I changed.

Issue 3990  (http://code.google.com/p/dart/issues/detail?id=3990)
 
Review URL: https://chromiumcodereview.appspot.com//10905109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11972 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 18:02:41 +00:00
ngeoffray@google.com b5fe256172 Improvements for checked mode: check when intializing fields, and when assigning to fields.
Review URL: https://chromiumcodereview.appspot.com//10910092

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11962 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 16:03:25 +00:00
kasperl@google.com 8db48e4171 Revert "Move dart:web to pkg:htmlescape."
This reverts r11943.

R=lrn@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11945 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 13:17:01 +00:00
lrn@google.com bd49eef27d Move dart:web to pkg:htmlescape.
Review URL: https://chromiumcodereview.appspot.com//10905125

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11943 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 12:54: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
alanknight@google.com 7782ac5331 Clean up Intl for language changes
Review URL: https://chromiumcodereview.appspot.com//10916128

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11910 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 23:30:39 +00:00
alanknight@google.com 85e5a21b87 dartc can't compile dart:io, fix status to avoid using it
Review URL: https://chromiumcodereview.appspot.com//10911112

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11904 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 21:14:52 +00:00
alanknight@google.com efa7a80f03 Async initialization for DateFormat
Review URL: https://chromiumcodereview.appspot.com//10917069

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11901 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 19:54:01 +00:00