Commit Graph

25510 Commits

Author SHA1 Message Date
vsm@google.com 609c1239d5 Move interop js code out of dart.js
BUG=7973

Note: this is a breaking change and would be advertised as such.
Anyone using js-interop would need to explicitly include:

<script type="text/javascript" "pkg/browser/lib/interop.js"></script>

along with dart.js in their HTML.  Those who don't need js-interop can
save on this code.

Alexandre: I'm imagining interop.js would be the landing spot for
dart:js bootstrap code as well.

R=alexandre.ardhuin@gmail.com, dgrove@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23855 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 15:33:18 +00:00
ahe@google.com d938ea377e Tests that import dart:io also fail on Dartium.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23853 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 14:10:03 +00:00
ajohnsen@google.com 04b7752d32 Remove references to RedirectLimitExceededException.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23851 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 13:45:16 +00:00
ajohnsen@google.com 3912edcc0e Hide IOException from java_core.dart in analyzer_experimental.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23850 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 13:35:07 +00:00
ahe@google.com cca7619989 Don't skip tests.
R=kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23849 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 13:16:52 +00:00
ajohnsen@google.com 5ce3b9ddea Clean up dart:io exceptions.
- Introduce IOException.
- Remove HttpParserException.
- Merge RedirectLimitExceededException and RedirectLoopException into
RedirectException.
- Remove 'IO' from FileIOException, DirectoryIOException, LinkIOException
and SocketIOException.

BUG=https://code.google.com/p/dart/issues/detail?id=9955
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23848 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 13:15:46 +00:00
ajohnsen@google.com 2149b3a859 Add 'Server' and 'User-Agent' default header fields.
They include the major and minor version of Dart.

BUG=
R=sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23844 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 11:54:15 +00:00
scheglov@google.com 0049091064 Clean up analyzer_experimental after Annotation disambiguation.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23836 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 23:55:54 +00:00
nweiz@google.com 526d551cd6 Stop working around issue 2644.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23829 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 21:21:15 +00:00
sgjesse@google.com 861d9ef05a Fix bug in status file
TBR=ahe@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23812 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 14:09:07 +00:00
sgjesse@google.com db4897b844 Move the crypto expectations to the pkg status file
TBR=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23810 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 13:52:41 +00:00
sgjesse@google.com 58293681e5 Move the crypto tests into the pkg directory
R=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23805 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 12:07:24 +00:00
ricow@google.com 93e817b16c Add packages as a dependency for dart2js target
Since dartdoc depeneds on packages and we include it in the snapshot we need packages as a depenedency.

Currently tools/build.py -mrelease dart2js is broken if you do a clean build.

R=ahe@google.com, kustermann@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23804 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 11:57:06 +00:00
scheglov@google.com bb87681f61 Fixing build.
TBR

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23796 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 04:58:59 +00:00
scheglov@google.com 20a078aefb Improve java2dart code style - relax 'don't reference variable name in its initializer'.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23795 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-10 04:05:50 +00:00
scheglov@google.com 9b27cae892 New analyzer_experimental snapshot.
Mainly to fix missing import in html.dart

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23792 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-09 19:13:20 +00:00
ngeoffray@google.com fabf8332ac Adding the file extension in a status file does not work.
Review URL: https://codereview.chromium.org//16358016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23791 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-09 05:18:44 +00:00
pquitslund@google.com 7ee54e63c1 Removing accidental symlink in quest for build greenness [TBR].
Review URL: https://codereview.chromium.org//16668002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23770 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 20:12:27 +00:00
pquitslund@google.com 8fe83e6d51 Dart formatter babysteps.
Largely scaffolding and basic datastructures.  Very much subject to change.

Dart style pointers greatly appreciated! :)

R=brianwilkerson@google.com, messick@google.com, rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23769 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 19:53:40 +00:00
pquitslund@google.com dd5f9e2233 Package status updates to exclude tests that require dart:io for the usual targets.
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23768 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 19:53:32 +00:00
nweiz@google.com a195a7d151 Support a URL style for pathos.
BUG=11131

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23758 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 18:29:46 +00:00
mdakin@google.com 4008bb5846 .
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23741 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 11:29:29 +00:00
mdakin@google.com 3c17374f8f Forgot one file..
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23740 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 11:29:24 +00:00
mdakin@google.com c84ddf4480 .
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23739 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 11:29:18 +00:00
mdakin@google.com d28ccdc143 Remove ignoreIllegalInput parameter from decoder.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23738 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 11:29:13 +00:00
sgjesse@google.com 41388db291 Remove the crypto factories
This should also remove the dartc errors.

TBR=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23728 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-07 07:29:14 +00:00
scheglov@google.com c7eeff273b Quick check for self in InterfaceTypeImpl.getLeastUpperBound()
This reduces co19 time from 60 to 45 seconds for DDA.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23714 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 19:29:22 +00:00
scheglov@google.com 80fea8fd8e More fixes for java2dart and status files.
Now DDA passes/fails the same tests as Java version.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23705 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 18:13:44 +00:00
sgjesse@google.com 4970666df2 Get the api docs generated for the crypto package
Then library name of dart.crypto caused the api docs to not be generated.

Removed some abstract modifiers and class HashException

R=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23693 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 16:13:52 +00:00
kustermann@google.com 5689ffe2ae Do not listen to errors twice in test_controller.js
Currently we have two error handlers in test_controller.js. One is using
'window.onerror = ...' and one is using 'window.addEVentListener("error", ...)'.
Doing so will give us the same error twice (i.e. for negative tests / failing
tests, we will get an exception which is caused by both mechanisms.)

R=ricow@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23682 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 13:32:45 +00:00
scheglov@google.com d775a9cef3 Fixes for translator and DDA status files.
Almost everything is again translated automatically.

There are three fragments which we have to replace to source level.
One for performance reasons; two others - to avoid using IO.

Now we are green for co19 tests, execute 4034 of them in 2:07, 132 failures.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23624 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 00:59:32 +00:00
nweiz@google.com 25d42f64e6 Make the StackTrace library better handle core library frames.
Core library stack frames now have libraries and meaningful line numbers, so in
general we should preserve those. However, terse stack traces don't care about
the internal workings of the core libraries, so they now explicitly remove the
library and line number information.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23621 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 23:36:31 +00:00
nweiz@google.com ebaa28cfec Make my pkg packages warning-clean.
R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23620 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 23:34:06 +00:00
nweiz@google.com 29342cea22 Mark the "completes" matcher as final.
R=gram@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23618 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 22:31:55 +00:00
nweiz@google.com b53e4a8fde Fix an analyzer error in scheduled_test.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23612 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 20:08:54 +00:00
nweiz@google.com 9e49b867e7 Allow DirectoryDescriptor.load to load a file next to a directory.
This mkaes it easier to model servers using descriptors.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23607 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 18:30:48 +00:00
gram@google.com 17562d4e16 Change output of string equality match failures.
See https://code.google.com/p/dart/issues/detail?id=9827

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23604 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 17:17:51 +00:00
scheglov@google.com 0d3e47da2c Basic dart^2 analyzer tests running.
Status file only for co19 now, more status files in next CL.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23602 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 16:09:13 +00:00
scheglov@google.com b80f5b1e6d Remove trailing spaces in analyzer_experimental
Otherwise Editor does this on the first save and creates unmanagable CL.

R=jwren@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23570 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 21:33:08 +00:00
antonm@google.com 3264ecdd1b Cleanup suppressions.
TBR=vsm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23548 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 15:44:39 +00:00
scheglov@google.com 7e96d2372f analyzer_experimental snapshot
R=brianwilkerson@google.com, messick@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23515 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-02 22:00:29 +00:00
vsm@google.com 2381a30a87 Fix expectations
TBR=antonm

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23514 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-02 21:20:41 +00:00
vsm@google.com d5da0f0c0d Adjusted expectations from last Blink roll
TBR=antonm, blois

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23513 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-02 20:30:14 +00:00
lrn@google.com 544e7061a0 Remove leftover debug-prints in Expect.
Review URL: https://codereview.chromium.org//15741028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23461 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 09:32:48 +00:00
lrn@google.com 969a5f27b8 Fix bug in Expect package's string compare.
Review URL: https://codereview.chromium.org//15745024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23455 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 07:56:20 +00:00
lrn@google.com faa7227cec Make new StreamController be async by default.
Change all instances, except some tests, to be sync still.
Rename Multiplex to Broadcast everywhere.

R=floitsch@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23453 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 06:07:39 +00:00
regis@google.com b7eb5aedbe Cleanup various test status files.
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23450 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-31 00:39:37 +00:00
devoncarew@google.com 460a15696f Remove unused (and little used) cli flags from dartanalyzer.
R=danrubel@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23441 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 21:06:16 +00:00
devoncarew@google.com 37b90d3bcb Change the cmd-line output for warnings from foo.dart:line:col to foo.dart, line x, col y.
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23422 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 16:25:23 +00:00
sgjesse@google.com 69df933ff3 Remove the HttpRequest.queryParameters getter
The parsed query parameters are now now available from the Uri object.

TBR=whesse@google.com

BUG=http://dartbug/2641

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23413 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 13:39:24 +00:00