Commit Graph

729 Commits

Author SHA1 Message Date
antonm@google.com 3414a4a429 Support Dart optional arguments which are not dispatched, but instead use default values.
BUG=1886

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4871 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-02 11:22:12 +00:00
antonm@google.com 7ebac2d13c Properly escape paths.
Otherwise on Windows we emitted a\b and \ just escaped the following character.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4866 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-02 10:41:29 +00:00
antonm@google.com cebe958040 Use plain gcc.
That makes the scripts work under Cygwin.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4864 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-02 10:13:47 +00:00
jmesserly@google.com 84bedc94e7 mark html_tests as flaky
TBR=jacobr@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4860 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-02 09:38:21 +00:00
vsm@google.com 2f0ff2fb17 Bring htmlconverter back up to date:
- Remove dartc path.
- Use dom or html for DOMContentLoaded depending on the compiled source.
- Fix up tests.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4851 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-02 02:03:01 +00:00
podivilov@google.com 5a3921f14e Get rid of GetIDLTypeInfoByName.
R=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4802 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-01 16:23:19 +00:00
podivilov@google.com d46405ba11 Add missing includes (spotted while splitting cpp derived sources).
Corresponding WebKit change: https://chromiumcodereview.appspot.com/9570007.

R=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4800 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-01 16:18:41 +00:00
jacobr@google.com 8bf885ce5c Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled for functionality that isn't yet ported over to the new dart:html implementation).
Files in
client/html/src that have been ported over have been removed while files that need to be ported have been left to simplify tracking the porting effort.
Created a client/dom/templates/html/impl directory that contains templates shared by the frog and dartium bindings.

There is still a bit too much duplicated code in the dartium and frog generators.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4778 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-01 03:25:36 +00:00
nweiz@google.com ad40646a19 Fix XML tests on Safari and IE.
This involves fixing $typeNameOf when dealing with XML documents, as well as
ensuring that nodes are removed from their owner documents before being added to
new documents.

Fixes issue 1884.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4769 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-29 21:45:30 +00:00
vsm@google.com 7e4587d10e Safely wrap window.top in frog dom.
This is a one off to let me make progress.  The general issue is filed at: http://code.google.com/p/dart/issues/detail?id=1913

Note: it looks like the generated files were a little out of date, so there are some extraneous changes here.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4767 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-29 21:03:28 +00:00
podivilov@google.com 3e2fde3d69 Add supplementals for several unforked WebKit idls.
R=sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4739 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-29 08:38:10 +00:00
sigmund@google.com 34392335a4 dom test: fix test after change in isolate library.
Review URL: https://chromiumcodereview.appspot.com//9527004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4731 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-29 01:43:51 +00:00
vsm@google.com 0862d9d62e Fix htmlconverter to pick up frog from top-level out
Review URL: https://chromiumcodereview.appspot.com//9517007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4727 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 22:27:28 +00:00
whesse@google.com b76cd2801d Fix static warnings in test_suite.dart from local variables shadowing parameters or functions.
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4671 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 11:07:52 +00:00
nweiz@google.com 196f74e1c5 Disable frog_html_tests on Safari and IE due to a type-detection bug.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4660 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 03:17:28 +00:00
sra@google.com 10e93c5869 Add is-check to TypedArrays1Test
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4659 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 02:28:25 +00:00
nweiz@google.com 647d0e39c8 Add some sweet XML classes.
This should fix the errors with the previous commit.

TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4658 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 02:20:52 +00:00
nweiz@google.com 9149c6fbfe Revert "Add some sweet XML classes."
This is breaking the build.

TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4653 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 23:44:11 +00:00
vsm@google.com c3fa951f03 Dartium fix for dart:isolate
Review URL: https://chromiumcodereview.appspot.com//9476019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4651 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 23:43:18 +00:00
sigmund@google.com ee6a907611 isolates refactor: this change introduces 'dart:isolate' as a library. This is a
big global change, so let me explain in more detail. This refactoring CL does
the following:
- moves all the dart code for isolates in a common library (lib/isolate)

- changes frog to understand 'dart:isolate' imoprts by loading the code from the
  location above.

- changes the vm to undernstand 'dart:isolate' imports by creating a separate
  library that is part of the bootstrap. This follows the same code-structure
  that Todd suggested in his CL introducing the mirror library

- changes dartc to use the shared isolate library as the source of truth for
  type checking. I left around some of the internal js code in dartc so that the
  backend continues to work for apps that don't use isolates.

- changes all tests that use isolates to import the library explicitly (this is a large bulk of the files in this CL)

- changes test status for tests we can't fix in this repo (e.g. co19)

- splits the isolate library code to make it possible to preserve some tests
  without exposing internal types (e.g. tests about
  serialization/deserialization)

- changes the create_sdk script to copy the isolate library to the sdk

- includes the isolate library in dartdoc

I'll wait for at least one lgtm from each area (dartc, vm, frog, sdk)

There is one important pending thing this CL doesn't do:
- update test_runner.dart: This should be updated next time we upload the new
  binaries to tool/testing/bin
- dartium specific changes: Vijay, is there anything I need to do for dartium?

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4647 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 22:50:44 +00:00
nweiz@google.com 193e7b5712 Add some sweet XML classes.
Review URL: https://chromiumcodereview.appspot.com//9430066

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4645 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 22:35:58 +00:00
antonm@google.com b4c904a2e1 Support named ctors.
Review URL: https://chromiumcodereview.appspot.com//9480001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4632 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 18:41:23 +00:00
antonm@google.com 5368a3bf6e Support optional callbacks.
Review URL: https://chromiumcodereview.appspot.com//9455090

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4620 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 15:29:03 +00:00
podivilov@google.com c2188740d3 Support ImplementedBy idl attribute.
R=antonm@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4617 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 14:37:37 +00:00
podivilov@google.com 7d58ee8e84 Do not rename idl types to dart types at top level - this info is needed for native bindings generation.
R=sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4610 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 13:02:45 +00:00
podivilov@google.com b90da48f07 Ignore attributes and methods with CheckSecurityForNode.
Any cross frame access is considered as insecure, so stuff like contentDocument and frameElement make no sense in Dart.

R=antonm@chromium.org
BUG=1858
TEST=dart/security/cross-frame-access.html

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4607 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 12:33:24 +00:00
ngeoffray@google.com 0f350dcb7e Better mangling in frog for fixing parts of issue 1837.
Review URL: https://chromiumcodereview.appspot.com//9465041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4595 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-26 17:33:20 +00:00
vsm@google.com 06152a86c7 Cross frame access tests
We're allowing illegal cross-frame access on both Dartium and Frog right now.  I'm working on fixing the latter.

If these tests look good, I'll set the status file accordingly and land.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4591 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-26 01:50:45 +00:00
sra@google.com bad253e025 Fix parsing of DOMString[] in IDL
This is a prerequisite for fixing 1811, 1812.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4586 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-25 07:15:01 +00:00
antonm@google.com 4a9704f36d Support arguments in constructors.
Review URL: https://chromiumcodereview.appspot.com//9465011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4576 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-24 16:27:14 +00:00
antonm@google.com 225a61e054 Support flags for ParameterAdapters.
Review URL: https://chromiumcodereview.appspot.com//9463011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4574 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-24 15:22:23 +00:00
podivilov@google.com 129cc0f904 Update WebKit idls directories after recent merge.
TBR=sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4567 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-24 13:29:47 +00:00
ngeoffray@google.com 117fcf3d48 Put two $ in front of top-level builtins, to not clash with member names. Otherwise, the global object calls the top-level builtin instead of its member.
Review URL: https://chromiumcodereview.appspot.com//9447049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4564 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-24 11:44:24 +00:00
sra@google.com ba2cca463c This CL generates factory provider classes for any interface with a [Constructor] or [NamedConstructor] extended attribute.
The factory provider is generated from a template, using the pattern of an IDL interface specific template for the exceptional cases and a general template for the other cases.  I used the special case to adjust the number of arguments in the JavaScript call - longer term I think we might want to be a bit more intelligent about default argument values.

This CL generates for frog and dummy, the others need to be added.  Once the others have been added we might see an opportunity for abstracting out some of the mechanism but I it might turn out they are all slightly different.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4560 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-24 02:03:18 +00:00
sra@google.com 4e677996cc Fix for issue 1814 for dart:dom
Emit canned native bodies as a work-around for Issue 1814.

A better solution is to support the alternate name directly - then the
compiler can specialize the call site and avoid testing argument
values to determine the number of parameters.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4557 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 23:53:57 +00:00
sra@google.com 19af3bf64d Update copyright in dart:dom interface templates
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4510 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-23 01:09:20 +00:00
sra@google.com 2a85838483 Remove duplicate of SystemInterface
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4502 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 22:33:06 +00:00
jacobr@google.com f52742ae0a BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4495 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 21:44:55 +00:00
nweiz@google.com 38af502c09 Regenerate htmlimpl.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4483 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 19:05:35 +00:00
podivilov@google.com 9e23b94962 Move native system generator to a separate script.
R=sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4427 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 07:40:43 +00:00
sra@google.com 372a1e8602 Make dom/DocumentTest and dom/TypingTest work again
These broke in the port from WebKit to Dart test frameworks.

It DocumentTest broke because it uses the document URL and the Dart framework changes the file name.  Fixed by making the predicates to be less fussy.

TypingTest broke because it counts style sheets and the unittest framework adds one more.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4420 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 02:25:01 +00:00
sra@google.com 196da15a28 Make dom/XHRTest pass.
Made to pass by verifying GET failed as we currently have no way to
place a file with a fixed name alongside the .html file (the file
names are prepended with an execution-environment dependent name.)

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4418 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-22 00:43:19 +00:00
nweiz@google.com d5613e9e68 Get rid of duplicate 'tbody' keys in CUSTOM_PARENT_TAG_MAP.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4409 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-21 21:42:22 +00:00
sra@google.com dc545910fb Parse function-style extended attributes part #1
Constructor/NamedConstructor extended attributes have argument lists.
This change ensures they are parsed, renamed, written correctly.

Part #2 will be to process the argument list for the systems.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4385 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-21 00:08:27 +00:00
antonm@google.com e58b246ec3 Support generation of constructors in the most common case.
Review URL: https://chromiumcodereview.appspot.com//9416062

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4380 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-20 15:06:51 +00:00
podivilov@google.com 9d30a88866 Do not use relative paths in dom scripts.
TBR=sra@chromium.org

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4376 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-20 11:29:51 +00:00
jacobr@google.com 2dd9808b7b Wrapperless dart:html generator
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4373 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 22:11:16 +00:00
sra@google.com 9552d0e337 Regenerate frog dom
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4368 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 19:56:19 +00:00
scheglov@google.com cf869318e9 Issue 1606/1108. The 'native' keyword is supposed to only be allowed in core libraries.
http://code.google.com/p/dart/issues/detail?id=1606
http://code.google.com/p/dart/issues/detail?id=1108

R=codefu@google.com,zundel@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4361 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 18:07:07 +00:00
scheglov@google.com 5fdd279826 Issue 1475. Report warning for non-unique Map literal keys.
http://code.google.com/p/dart/issues/detail?id=1475

R=codefu@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4360 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-17 17:55:29 +00:00