Commit Graph

6631 Commits

Author SHA1 Message Date
ricow@google.com 0a657bfda5 Pass in arguments to create_sdk instead of using positional command line arguments
Review URL: https://codereview.chromium.org//13979006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21272 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 12:19:35 +00:00
ajohnsen@google.com 974a300cad Remove deprecated <, <=, >, and >= of DateTime.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21260 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 09:27:54 +00:00
lrn@google.com f41508d33b Added new version of reduce.
Removed min/max and uses of min/max.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21258 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 08:32:31 +00:00
ricow@google.com 9fd1680aa5 Fix apidoc dependencies and reenable editor test
Add back full copy of lib/_internal
Also fix snapshot dependency on old dart2js snapshot location
Review URL: https://codereview.chromium.org//14155002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21257 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 07:47:18 +00:00
ricow@google.com 00da866b33 Move the dart2js snapshot into bin directory of sdk root.
This is the first step in eliminating lib/_internal.
Review URL: https://codereview.chromium.org//13945008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21247 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 05:47:24 +00:00
hausner@google.com cadaedbcde Debugger wire protocol cleanups
- Rename id->isolateId in paused events
- Eliminate stack trace object in paused events
- Adapt ddbg.dart tool
Review URL: https://codereview.chromium.org//14105003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21241 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 23:37:21 +00:00
blois@google.com 16ba7bbc02 Documenting misleading DataTransfer API.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21216 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 16:22:14 +00:00
ager@google.com 9bd8f2db46 Use name to sort IDB interfaces into the indexed_db library.
R=antonm@google.com,blois@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21214 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 16:10:21 +00:00
devoncarew@google.com d7b8047611 Rename the sdk/bin/dartanalyzer* scripts to dartanalyzer_developer*, and update
the test framework to call the new scripts. This rename will allow us to add
two new scripts to this directory, dartanalyzer and dartanalyzer.bat. These scripts
will be the ones we include in the sdk.
Review URL: https://codereview.chromium.org//13760010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21213 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 16:01:21 +00:00
ahe@google.com adf844a4fe Make only_in_release_mode read the environment variable directly.
BUG=http://dartbug.com/9821

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21211 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 15:44:11 +00:00
floitsch@google.com 62358bf5e2 Make default argument to Iterable.join be "".
Review URL: https://codereview.chromium.org//13945009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21193 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 11:28:32 +00:00
lrn@google.com d4fcf3067c Make _FrozenElementList generic. It's needed for some type checks.
Review URL: https://codereview.chromium.org//13919003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21190 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 09:28:54 +00:00
lrn@google.com ad2804cf73 Fix bug in previous commit.
Review URL: https://codereview.chromium.org//13860003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21188 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 09:18:40 +00:00
lrn@google.com 8d7d80ecf2 Remove some usages of IterableMixinWorkaround from HTML library.
I haven't found a way to remove the usages in
  immutable_list_mixin.darttemplate
yet, since it requires understanding the Python code using the template.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21187 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 09:03:41 +00:00
podivilov@google.com 8a04dcd9e4 Revert recent changes to dart.idl.
R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21186 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 08:22:14 +00:00
podivilov@google.com 468fc08f93 Fix the build with WEB_AUDIO disabled.
Make sure web_audio_DartResolver.cpp is generated even if WEB_AUDIO is disabled
because our gyps depend on it.

R=antonm@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21182 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 08:01:28 +00:00
hausner@google.com 226b3f4ce4 Fix issue 9744
Allow for debugger stack frames that have no corresponding pc descriptor
entry, i.e. the PC is not at a known safe point. In that case, we cannot
return a code location nor variables.

Fixes 9744
Review URL: https://codereview.chromium.org//13948009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21175 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 23:36:51 +00:00
sra@google.com c3baf62826 More precise native type for context2D
Trims 3k off spirodraw

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21174 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 22:21:45 +00:00
nweiz@google.com afe21ca1b4 Include analyzer_experimental in the SDK.
Review URL: https://codereview.chromium.org//13841024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21173 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 22:10:18 +00:00
lrn@google.com 6160e59850 Moving ListBase, FixedLengthListMixin and UmodifiableListMixin to collection.
Users can now create lists easily by extending these classes, just
as they can create iterables by extending Iterable.

Reduce the dependency of IterableMixinWorkaround outside of core/collection
implementations. I plan to move IterableMixinWorkaround to _collection-dev
before M4.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21147 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 12:11:05 +00:00
sra@google.com 9882afba1d Tighten type of 'document' to HtmlDocument
reviewed as https://codereview.chromium.org/13686004/

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21130 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 01:44:53 +00:00
blois@google.com 622022dcb3 Fixing SVGPaint constructor DartC error.
Had removed the constructor because it was no longer needed to call the base class, but it's actually needed for derived classes.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21127 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 00:42:00 +00:00
blois@google.com 575512855b Fixing SVGColor DartC break
The base class for SVGColor was removed, but we still had an auto-generated constructor trying to call it, which broke dartc.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21124 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 23:49:16 +00:00
blois@google.com 8afa069ae4 These APIs were introduced in the CSS DOM 2 spec and have been removed from the CSS DOM 3 spec. We should remove them as well.
http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21121 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 23:25:11 +00:00
iposva@google.com 0d1af8b22c - Do not emit PIC code and frame pointers for release targets.
Review URL: https://codereview.chromium.org//13826002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21120 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 23:05:52 +00:00
hausner@google.com 15720724d9 Add more error detection to debugger test
Detect when malformed messages leave over garbage, e.g. when there
are is an extra closing brace.
Review URL: https://codereview.chromium.org//13741025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21119 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 22:24:00 +00:00
blois@google.com 93566b8a35 Making supressed DOM types abstract
This clears up a number of dart analyzer issues for the suppressed types.

Also making SVGGradientElement not be suppressed since it is used.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21111 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 20:45:32 +00:00
efortuna@google.com 5c0ae732b4 Add back localName and improve toString for Html nodes.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21105 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 19:29:10 +00:00
floitsch@google.com 343fa26d65 Remove deprecated Expect from the libraries.
Review URL: https://codereview.chromium.org//13724021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21079 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 16:07:34 +00:00
kustermann@google.com 28436e163d Change back to building everything if no argument to build.py was given
Review URL: https://codereview.chromium.org//13674027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21073 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 13:58:16 +00:00
ahe@google.com 649f3fa360 Redirect tput stderr to /dev/null.
Review URL: https://codereview.chromium.org//13794003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21070 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 12:56:43 +00:00
ahe@google.com da25a12caf Only build apidoc in release mode.
Review URL: https://codereview.chromium.org//13784002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21068 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 12:43:25 +00:00
ahe@google.com 2fec283320 Shorten "progress" information, and make sure it never extend 80 columns.
Review URL: https://codereview.chromium.org//13724018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21067 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 12:37:41 +00:00
ahe@google.com 22a82af86d Restore incremental output.
Review URL: https://codereview.chromium.org//13601019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21065 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 12:26:22 +00:00
kustermann@google.com 66455f6e2a Removed the temporary "packages" dependency of create_sdk and switched to "default" target in build.py
Review URL: https://codereview.chromium.org//13754002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21051 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 08:11:35 +00:00
lrn@google.com 24e3c0bbb0 Reapply "Reduce usage of IterableMixinWorkaround"
Fix bug and recommit

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21049 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 08:07:39 +00:00
blois@google.com de3717f58c Fixing HtmlDocument overloads
This had a bunch of unnecessary/problematic redirections to the global document.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21018 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-06 00:57:20 +00:00
blois@google.com 21ce609108 Fixing up a number of go.sh warnings
Tables have been falling out of date with IDL changes.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21016 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-06 00:39:27 +00:00
blois@google.com 3f82bebebe Fixing dartdoc generation.
Went out of date with my last CL.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21013 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-06 00:24:43 +00:00
blois@google.com ef7bf8964d Removing all Worker-related APIs
Need to revisit these once WebWorkers and Isolates are worked out.

BUG=8932

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21011 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-06 00:05:05 +00:00
efortuna@google.com a46b113afd Make html lists print a nice toString method.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21010 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 23:53:35 +00:00
hausner@google.com ee69789e07 Add line table command to debugger
New command returns token information of a script. This will enable
the editor/debugger to translate token offsets to line numbers.
Review URL: https://codereview.chromium.org//13533016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21009 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 23:45:14 +00:00
efortuna@google.com ae82b45193 Rename context2d to context2D.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21006 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 23:16:48 +00:00
blois@google.com 4456d77285 Allowing Window.onBeforeUnload event to work properly.
There are a couple of issues here, fixing some of them, but not quite all.

Background- the beforeunload event is used to present a dialog to the user after they have clicked a window/tab close button, usually to indicate unsaved changes. This is effectively the only mechanism available to preempt the close action.

In WebKit, the user must return a string value from the beforeunload event and that string will be displayed in an alert dialog prompting the user if they are sure they want to leave the page.

In FireFox, IE & the W3C spec, the beforeunload event is of type BeforeUnloadEvent. The string used to prompt the user is specified by the 'returnValue' field. Furthermore, WebKit exposes 'returnValue' as a bool on Event, where the spec does not have it on Event at all.

With this change, a user can utilize the beforeunload event on all platforms:
  window.onBeforeUnload.listen((e) {
    e.returnValue = "foo!";
  });

BUG=2350

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21003 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 22:30:31 +00:00
floitsch@google.com 8fd6d0aafd Remove Expect from core library.
Committed: https://code.google.com/p/dart/source/detail?r=19755
Reverted: http://code.google.com/p/dart/source/detail?r=19756

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20996 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 19:43:16 +00:00
devoncarew@google.com c5c15b0881 Rename the name of the new analyzer jar file from new_analyzer.jar to
dartanalyzer.jar (which I think will be the preferred name for it in
the SDK).

Update the test framework for these renames.
Review URL: https://codereview.chromium.org//12618010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20994 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 19:33:23 +00:00
ahe@google.com 76f2ff3197 Catch CalledProcessError which is throw if the command has non-zero exit code.
Review URL: https://codereview.chromium.org//13674014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20992 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 18:15:39 +00:00
ahe@google.com 6d1d524511 Only emit "interactive" output if stdout supports colors.
Review URL: https://codereview.chromium.org//13726008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20991 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 18:02:21 +00:00
antonm@google.com 115ff4b40b Map enums to strings.
R=blois@google.com,podivilov@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20984 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 17:00:25 +00:00
floitsch@google.com bef8ebb5f6 Add Iterable.fold (and Stream.fold) which replace reduce.
For now this is just a copy. In a next step we will change the behavior of
`reduce`.

BUG= http://dartbug.com/9536

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20978 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 16:12:40 +00:00