Commit Graph

729 Commits

Author SHA1 Message Date
jmesserly@google.com 71af5a2680 Fix factories in Frog to correspond to the new syntax.
(Note: this is designed to work against corelib changes in http://codereview.chromium.org/8931011/, but it also works against current checked in corelib) I kept old factories limping along in Frog. We can remove them soon

Review URL: http://codereview.chromium.org//8952006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2474 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 19:59:52 +00:00
sigmund@google.com 9fa7c19028 client.status: reneable html tests
Review URL: http://codereview.chromium.org//8968001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2472 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 19:09:36 +00:00
sra@google.com 15def13751 File missed in http://codereview.chromium.org/8915019/
BUG=
TEST=

Review URL: http://codereview.chromium.org//8954006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2458 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 04:07:01 +00:00
sigmund@google.com 252dcbfea0 green bots: skip html_tests
(tbr)

Review URL: http://codereview.chromium.org//8947011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2456 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 03:56:04 +00:00
nweiz@google.com b82fa6a145 Cleaner and more correct fix for _ChildrenNodeList#forEach.
TBR

Review URL: http://codereview.chromium.org//8953001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2454 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 00:57:49 +00:00
danrubel@google.com ffdb38c1a4 Fix dartc tests (TBR)
Review URL: http://codereview.chromium.org//8909018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2450 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-14 23:15:33 +00:00
danrubel@google.com 364c30bcdf Rename frog dom to match SDK naming convention
Review URL: http://codereview.chromium.org//8915019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2449 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-14 22:47:06 +00:00
nweiz@google.com 304db26749 Fix _ChildrenNodeList#forEach.
TBR

Review URL: http://codereview.chromium.org//8907051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2448 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-14 22:46:00 +00:00
nweiz@google.com e381b0a935 Fix client/html/ElementTests when there are other elements already on the page.
TBR

Review URL: http://codereview.chromium.org//8915015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2444 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-14 20:59:26 +00:00
nweiz@google.com 8708104bdc Make ElementTests independent of the existing HTML markup.
Review URL: http://codereview.chromium.org//8932011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2411 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-14 01:19:18 +00:00
nweiz@google.com 570e2d685e Fix the event tests under Frog.
TBR

Review URL: http://codereview.chromium.org//8907024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2406 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-14 00:19:00 +00:00
sra@google.com d5bf145d29 Mark VoidCallback as a [Callback]
This will let Dart 0-arg functions be passed to
NotifcationCenter.requestPermission to fix Issue 830.

The change required merging interface extended attributes.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8935001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2373 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-13 03:11:50 +00:00
sra@google.com aed94fd301 Generate EventListener attributes of non-EventTarget classes.
Some DOM types have EventListenter attributes but are not
EventTargets.  For these types we have no choice but to implement the
onxxx attributes.

This change also reverts the addition of EventTarget to the
implemented types of JavaScriptAudioNode.  That was a mistake.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8894029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2336 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-10 09:53:46 +00:00
mrrussell@google.com 663199cbc5 add JDK/bin to the path
Review URL: http://codereview.chromium.org//8894025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2333 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-10 06:12:46 +00:00
mrrussell@google.com 44289a6689 add the JAVA_HOME to the environment for the call to build.py when running on the dart-editor-linux bot
Review URL: http://codereview.chromium.org//8896015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2332 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-10 05:36:54 +00:00
vsm@google.com 649071d8c5 Add enables consistent with Chrome's WebKit
jacobr: You'll also pick up new apis next time you gen dart:html.

Review URL: http://codereview.chromium.org//8895013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2328 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-09 23:15:30 +00:00
sra@google.com 753088eb43 Add KeyName and KeyLocation to frog dom.
Removed the 'snippet' and added these classes to src.

dart:html could also #source these files now.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8872058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2299 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-09 07:06:02 +00:00
sra@google.com 0868e8fafa Turn on ENABLE_VIDEO to enable AudioContext.createMediaElementSource
BUG=
TEST=

Review URL: http://codereview.chromium.org//8889042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2298 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-09 05:51:06 +00:00
sra@google.com d0cd0a5e58 Work-around Frog codegen bug where Window is derived from native DOMWindow.
Window really needs to be an alias for DOMWindow.

Worker-friendly console.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8879044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2297 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-09 02:25:40 +00:00
vsm@google.com 895891f8e8 Added WebSocket support for dartc and frog
Review URL: http://codereview.chromium.org//8879037

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2289 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 23:16:19 +00:00
sra@google.com 3f26a8169b JavaScriptAudioNode is an EventTarget.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8872040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2285 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 22:43:54 +00:00
jmesserly@google.com bda85b81ac DOM fixes for types that are not marked hidden. They are not used, so we don't generate the right dynamic handlers for them.
Review URL: http://codereview.chromium.org//8888027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2283 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 21:57:18 +00:00
sra@google.com 4521347a0b Fix AudioContext constructor for Dartc.
Frog is still broken, but this should fix the build.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8873011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2231 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 09:05:49 +00:00
sra@google.com cc6a29f991 Enable fullscreen API and file system API
These were discussed in the Hackathon HTML5 lecture.
They are also enabled in Dartium.
Enabling so they can be used.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8879007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2227 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 06:46:27 +00:00
vsm@google.com 03a41b0b73 Added constructor for AudioContext for dartc and frog
Review URL: http://codereview.chromium.org//8873008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2225 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 05:51:01 +00:00
sra@google.com 58fea99105 Revert "Revert "Implement typed array constructors.""
This reverts commit c994dafc93117a7ba270df5c92212a7c85dcc705.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8883007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2222 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 03:22:23 +00:00
sra@google.com 1dc0d0899b Revert "Implement typed array constructors."
This reverts commit ace636521ecc117cc02b07ebd221d57913f01d7a.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8885004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2221 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 02:49:11 +00:00
sra@google.com c050587f5d Implement typed array constructors.
This change implements a set of three constructors for each of TypedArrays, e.g:

Float32Array(int len);
Float32Array.fromList(List<num> list);
Float32Array.fromBuffer(ArrayBuffer buffer);

Implemented for both Dartc and Frog.
Test case coming in a different CL.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8889001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2220 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-08 02:43:59 +00:00
nweiz@google.com f7419664c4 Thoroughly document html_diff and html_doc.
TBR

Review URL: http://codereview.chromium.org//8871001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2204 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 23:13:23 +00:00
nweiz@google.com a811209d78 Add a script to generate HTML and DOM docs with cross-links to one another.
This entails adding callbacks to dartdoc for injecting additional
comments, as well as adding somewhat deeper support for hashing and
equality testing of Frog objects.

The next step is to inject the annotations into the HTML and DOM library source itself.

Review URL: http://codereview.chromium.org//8771054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2199 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 22:15:12 +00:00
sigmund@google.com d45d3596c5 frog: better errors/warnigns about type annotations in map literals.
Using 2, instead of 1 type arguments is only a warning (this matches the vm)

Review URL: http://codereview.chromium.org//8856004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2189 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 19:10:37 +00:00
sigmund@google.com cb86ec8e6a buildfix: not use type annotation in map literals within htmllib
Review URL: http://codereview.chromium.org//8855001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2187 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 17:43:52 +00:00
sigmund@google.com b0d4e767fc frog: use type annotation in map and list literals
BUG= http://code.google.com/p/dart/issues/detail?id=220 http://code.google.com/p/dart/issues/detail?id=221

Review URL: http://codereview.chromium.org//8849001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2186 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 17:37:00 +00:00
scheglov@google.com 06d54c8d64 Support for 'abstract' modifier for class and spec recommended warnings, issue 375
http://code.google.com/p/dart/issues/detail?id=375

R=zundel@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8728001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2181 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 16:15:20 +00:00
jacobr@google.com 770a6a6c0a New version of the bindings.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8839010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2168 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-07 12:31:46 +00:00
sra@google.com eaaadfbb49 Custom native class spec for Console.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8825013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2152 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 23:37:56 +00:00
mrrussell@google.com 14e41988e1 Pass all builders starting with dart-editor to the dart builder
Review URL: http://codereview.chromium.org//8829001

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2145 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 21:58:06 +00:00
sra@google.com 1e5755b3d8 Custom native class spec for Console.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8758022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2140 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 20:43:20 +00:00
scheglov@google.com 54c5f79d42 Check that interface constructors and default class constructors are compatible.
1. Number of required parameters.
2. Names and order of named parameters.
3. [disabled] type warning for non-identical types.
4. [wait for Eric, not implemented] type parameters check.

R=zundel@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8786002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2124 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 14:58:16 +00:00
sra@google.com 52944bf7b6 Work-around for FireFox: patch non-leaf types statically if possible.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8820004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2114 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-06 03:41:19 +00:00
ager@google.com 379d80c2a7 t cl dcommit# Enter a description of the change.
Add test_config.dart for client dartc tests.

R=floitsch@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8806014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2074 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 15:56:13 +00:00
ager@google.com 456d63c6ab Add support for client/dartc compilation only tests.
These tests do not fit in that nicely. They have an interesting
way of finding out what are test cases. They use the .dart
suffix in the status file.

Implement directory createTempSync.

R=whesse@google.com
BUG=
TEST=

Review URL: http://codereview.chromium.org//8799009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2067 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-05 13:34:12 +00:00
sra@google.com 5008a20945 Fix CanvasPixelArray's operator[] for the wrapping js dom
The item() indexing accessor went away, so implement Dart indexing on
top of JS indexing.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8784013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2055 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-03 09:02:37 +00:00
sra@google.com 4a7fece9e9 Generate callbacks as typedefs.
IDL interfaces with the Callback extended attribute are emitted as
typedefs instead of interfaces or classes.  This brings the JS doms
into line with the Dartium version.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8786016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2054 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-03 06:08:32 +00:00
sra@google.com 33c8cecafd Turn on webaudio for JS backends.
There was a comment to fix the idl/parser but it no longer seems to be
a problem.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8785014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2052 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-03 03:20:40 +00:00
sra@google.com 79ad37eb5f Generate JS code to characterize browsers.
The generated html can be run in several browsers to gather data to
determine the common set of DOM objects with constructors in the
global namespace.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8784011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2049 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-03 02:22:37 +00:00
sra@google.com 7e8f214df6 Many operations are specified as [Custom] with no argument list.
Add supplementary IDL to allow operations to be used.

The longer-term fix is for correct IDL to be upstreamed.

Unblocks Issue 122 for forg/dartc.

BUG=
TEST=

Review URL: http://codereview.chromium.org//8769030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2011 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 05:48:44 +00:00
sra@google.com 4f20c6ca03 Mark frog DOMWindow as aliased with global scope.
BUG=
TEST=

Review URL: http://codereview.chromium.org//8773024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2006 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-02 00:20:47 +00:00
nweiz@google.com c485674382 Get html-diff running again.
TBR

Review URL: http://codereview.chromium.org//8769021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1998 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 22:51:54 +00:00
jmesserly@google.com f303a82f37 Frog now knows about the JS global object, and prevents name collisions with user code. I wasn't sure how to update the IDL generator scripts, so I just hand edited the frog_dom file to add the "@".
Fixes http://code.google.com/p/dart/issues/detail?id=637

Review URL: http://codereview.chromium.org//8775027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1994 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 22:19:45 +00:00