ngeoffray@google.com
8c8ffbac52
Only build 'compiler' (ie dartc) when running chromium tests.
...
Review URL: http://codereview.chromium.org//8776005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1980 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 13:17:53 +00:00
dgrove@google.com
75eaa7d815
Add '#library' to tests that need a #import or #source.
...
Review URL: http://codereview.chromium.org//8764018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1967 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-01 05:54:22 +00:00
jmesserly@google.com
254a4c0d88
Fix names with '$' to not conflict with operators or internal helpers.
...
Does two things:
* In our Dart type system, we track special names with ":" instead of "$". So ":add" and "get:foobar" "set:foobar". In "jsname" we change this back to $
* in jsname, mangle $'s from Dart identifiers into $$. It's not perfect, but should avoid conflicts with our various helpers.
http://code.google.com/p/dart/issues/detail?id=639
Review URL: http://codereview.chromium.org//8763001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1948 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 21:52:59 +00:00
mmendez@google.com
a0aedcf9e1
Fix build break introduced by r1935.
...
Review URL: http://codereview.chromium.org//8741027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1939 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 20:21:37 +00:00
rnystrom@google.com
bbbee862dd
Add unittest entrypoint for node/frog.
...
Review URL: http://codereview.chromium.org//8742025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1936 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 19:17:15 +00:00
codefu@google.com
498e76f6d9
Missing scope variable causing build error for dartcombat
...
http://code.google.com/p/dart/issues/detail?id=626
BUG=
TEST=
Review URL: http://codereview.chromium.org//8724005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1903 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-29 21:30:20 +00:00
jacobr@google.com
1ea93e5f9f
Fixes to the html library matching vsm's changes to the generated code.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8659025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1901 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-29 18:59:47 +00:00
vsm@google.com
1d2dbb040b
Temporary build fix in generated code
...
TBR=jacobr
Review URL: http://codereview.chromium.org//8659020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1880 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-28 22:47:27 +00:00
jacobr@google.com
2dbe767ed6
Split html library into html and html_impl
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8548007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1879 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-28 22:16:54 +00:00
sra@google.com
a6f410174d
Generate constants for IDL classes
...
We will have to revert this if we go back to pure interfaces.
Fixes:
dartfrog-generated/dom/Cache.html text
dartfrog-generated/dom/Exceptions.html text
dartfrog-generated/dom/IsolateLight.html text
dartfrog-generated/dom/DOMConstructors.html text
BUG=
TEST=
Review URL: http://codereview.chromium.org//8473008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1878 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-28 21:28:12 +00:00
hausner@google.com
620d772233
Revert initializing formals change in client code
...
Didn't revert those initializers that refer to private fields.
TBR=sra
Review URL: http://codereview.chromium.org//8680038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1826 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-24 00:25:10 +00:00
podivilov@google.com
437f27b534
Remove support for attribute event listeners.
...
R=vsm@google.com
BUG=5590885
Review URL: http://codereview.chromium.org//8637013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1790 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 13:31:13 +00:00
sra@google.com
fb98a21f8c
Switch to " native '*Class' "
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8665012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1775 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 02:50:29 +00:00
hausner@google.com
7d3c45084a
Partial fix to client breakage
...
TBR
Review URL: http://codereview.chromium.org//8666012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1772 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 01:18:16 +00:00
jacobr@google.com
5b31d3d00f
This class wasn't used anyway. Removing as it causes errors due to recent VM changes.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8673005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1771 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-23 01:12:10 +00:00
nweiz@google.com
4b756816ea
Add a script for determining which DOM methods correspond to which HTML methods.
...
Ultimately, this will be used for generating documentation. Currently, though,
it just prints out information to the console.
This also includes some annotations to the HTML library, where the DOM
correspondence couldn't be auto-detected.
Review URL: http://codereview.chromium.org//8548019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1767 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-22 23:39:59 +00:00
sra@google.com
42f62445ff
Enable SVG for dartc and frog
...
This will increase the size of dart:dom by ~30%
There is a basic layout test that will be checked in soon.
BUG=5353686
TEST=
Review URL: http://codereview.chromium.org//8618007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1726 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 23:57:21 +00:00
jmesserly@google.com
71eb286ffa
Fix Swarm to run again, and enable its test
...
Something broke consts--they weren't being generated with the "var" prefix, so closures didn't work right. Not sure why we're only hitting this in Swarm tests.
Also turn off type checks for DOM types until we put in the right fallback for is$ methods.
TEST=swarm_test
Review URL: http://codereview.chromium.org//8618004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1722 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 22:29:43 +00:00
vsm@google.com
7a0c8ebee2
Generate constructors for frog DOM
...
Note, this overlaps with the other CL (http://codereview.chromium.org/8595020/ ) as the underlying IDL has changed.
Stephen: If this looks good, I can autogen the wrapper templates as well.
Review URL: http://codereview.chromium.org//8569017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1691 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 04:51:45 +00:00
vsm@google.com
0da36c6374
Cleanup old code and refresh on IDL
...
Note, this picks up Pavel's custom->any IDL change.
Review URL: http://codereview.chromium.org//8595020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1690 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-21 04:43:03 +00:00
jimhug@google.com
baedd53cd3
json bug fix
...
BUG=522
TEST=client/tests/json
Review URL: http://codereview.chromium.org//8604011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1688 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-19 17:14:43 +00:00
sra@google.com
d98d380d29
Cleanup generators
...
Make generators uniform.
Remove some dead code from the old use of interface injection to
constructing union types.
This CL makes no changes to the generated files.
TBR=vsm
BUG=
TEST=
Review URL: http://codereview.chromium.org//8500007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1684 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-19 05:55:38 +00:00
jmesserly@google.com
5e4805a30a
Parser fix for lambdas. All the heavy lifting courtesy of Stephen :)
...
(http://codereview.chromium.org/8400017/ )
Only difference in this version is using a List instead of a Map (due to Maps having not so great performance at the moment when the keys are numbers. And we could get even better perf by tweaking this to cache the lookahead on the Token, if we really wanted to)
Review URL: http://codereview.chromium.org//8545003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1683 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-19 01:46:51 +00:00
jmesserly@google.com
17dd3cba7a
Fixes to get Swarm demo app working again.
...
The key fix is that we correctly specialize the parent of a generic type, and ensure that inherited generic members are created on the correct concrete type. Otherwise, we end up pulling the base method into the derived ConcreteType, potentially pulling it into a totally different library and messing up private member access. To make this work in the generated code, we need to also pull these members into the derived ConcreteType's prototype.
Review URL: http://codereview.chromium.org//8588060
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1670 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 19:54:51 +00:00
sra@google.com
3e199eec2d
Wrapper dom changes in preparation for SVG
...
SVG defines methods that override base class methods. This requires
the Dart static helper methods to have unique names since Dart
inconveniently does not permit static method shadowing. Rather than
furr up all the names with yet another copy of the class or interface
name, this change only adds the interface name if there actually is a
base class method of the same name.
Almost all of this change is due to applying the same technique to the
attribute getters and setters, which makes many names a little shorter.
BUG=
TEST=
Review URL: http://codereview.chromium.org//8548010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1646 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 06:10:51 +00:00
vsm@google.com
31dc1074ee
Fix build, spirodraw
...
Tested spirodraw with frog in the browser.
TBR=sra,drfibonacci
Review URL: http://codereview.chromium.org//8598008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1645 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 04:33:37 +00:00
vsm@google.com
f0e5d25767
Roll DOM APIs forward on IDL & update Frog DOM
...
Note, the frog DOM is generated via:
> ../tools/copy_dart.py frog frog_dom.dart
to keep it a single file.
I'll experiment to get rid of this level of indirection in a later CL.
Review URL: http://codereview.chromium.org//8591026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1644 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-18 03:04:12 +00:00
jmesserly@google.com
c21417ef6e
Revert "Fix some type warnings in html library."
...
The factory change seems to have broken tests on Dartium.
Review URL: http://codereview.chromium.org//8561002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1642 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 23:58:43 +00:00
pquitslund@google.com
3341e8d3db
Fix to workaround non-propagation of exception stack-traces by dartc.
...
Net-net: The previous work-around, assigning '' to the trace var inside the try block, had stopped working. Somewhere along the line dartc started properly respecting try/catch block scoping of vars.
In an attempt to verify that this fix hasn't broken anything unexpected, I ran test.py and confirmed that all tests still pased and re-ran it with a broken test and confirmed that a stack trace was emitted.
Here's how I built and ran:
./tools/build.py --arch=ia32
./tools/test.py --mode=release --component=dartium client -v --keep_temporary_files
Review URL: http://codereview.chromium.org//8586041
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1639 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 23:36:55 +00:00
jmesserly@google.com
0c187847e4
Fix some type warnings in html library.
...
Two changes:
* factories for Element are typed to return Element. That way we know they're downcastable to things like CanvasElement.
* switch "final" to an explicit "dom.HTMLElement", so we know it has innerHTML on it. (from looking at the static tpes, it thought "temp" was just an dom.Element. You're probably familiar with this "feature" of the DOM... ;-) )
Review URL: http://codereview.chromium.org//8591031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1637 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 22:22:34 +00:00
dgrove@google.com
9ccef48844
Add libdir when invoking frog.
...
Review URL: http://codereview.chromium.org//8590039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1628 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 21:03:51 +00:00
vsm@google.com
8299dfe610
Regenerate from IDL with LANGUAGE_JAVASCRIPT on
...
Review URL: http://codereview.chromium.org//8588010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1620 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-17 15:01:35 +00:00
vsm@google.com
ec6c1f19aa
Enable html_tests for chromium/release
...
Review URL: http://codereview.chromium.org//8587011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1592 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 23:32:43 +00:00
vsm@google.com
bfb17fba32
Support DOMString[] and regenerate from IDL
...
Notes:
- This rolls forward to just before Pavel's LANGUAGE_JAVASCRIPT change. I'll update from there in a second CL.
- I'll need to reapply to initWebKitWheelEvent manually to this.
Review URL: http://codereview.chromium.org//8574040
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1590 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 23:05:15 +00:00
amshali@google.com
8eb81c43b4
Fixed a compile error
...
Review URL: http://codereview.chromium.org//8586002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1586 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 22:31:33 +00:00
vsm@google.com
fefe9875a2
Changes initWheelEvent to initWebKitWheelEvent
...
Review URL: http://codereview.chromium.org//8583003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1584 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 20:02:44 +00:00
antonm@google.com
b869b81c1d
Mirgate dart:html to initWebKitWheelEvent.
...
Recently Dartium code generator started to follow more closely JS-specific
stuff in IDLs. And, as an example, for JS we have WheelEvent.initWebKitWheelEvent, not
WheelEvent.initWheelEvent as for other languages. Hence the change.
Review URL: http://codereview.chromium.org//8581002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1582 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 19:26:40 +00:00
terry@google.com
17fc5c5060
Fixed update to correctly call htmlconverter.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8570020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1557 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-16 02:47:20 +00:00
jmesserly@google.com
e89a0bf296
Better fix for client tests.
...
There was a simple bug in $varMethod. We don't hit this path much--you need to be dynamic & in the DOM library.
Review URL: http://codereview.chromium.org//8511081
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1497 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-12 02:28:41 +00:00
jmesserly@google.com
9db3945f72
Fix client status from my previous checkin.
...
Looking at this now. I think my change may have exposed a different compiler bug.
Review URL: http://codereview.chromium.org//8538033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1496 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-12 01:56:50 +00:00
jmesserly@google.com
090673a5db
Fix dartcombat_tests status
...
Review URL: http://codereview.chromium.org//8511078
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1491 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-12 00:30:12 +00:00
sigmund@google.com
41240c4926
minor fix to get dartcombat tests passing
...
Review URL: http://codereview.chromium.org//8540024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1485 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-12 00:04:33 +00:00
srdjan@google.com
4e73a18984
Fix frog testing with ../tools/test.py -c frog
...
(leg testing is still broken as many language tests are failing)
Review URL: http://codereview.chromium.org//8537019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1474 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 21:19:49 +00:00
sigmund@google.com
74be8dd6b3
skip swarm and dartcombat in frogium - sometimes they timeout
...
Review URL: http://codereview.chromium.org//8511054
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1449 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 08:50:00 +00:00
antonm@google.com
e59348461d
total_tests are passing now.
...
Review URL: http://codereview.chromium.org//8491037
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1448 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 08:35:03 +00:00
antonm@google.com
f8eb259b8d
Defer further starting timeout watch dog.
...
Recent changed made DOMContentLoaded event to fire before than
Dart application is ready to run. Therefore the safest bet
timeout watchdog is to wait until the document is fully loaded.
This reverts commit 162f93c5b4def3f2cac2aa1b00fa1d510d1e9940.
Review URL: http://codereview.chromium.org//8525005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1447 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 08:23:05 +00:00
sigmund@google.com
44df0ac719
Mark more tests as flaky (they seem to be around the timeout borderline)
...
Review URL: http://codereview.chromium.org//8527021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1444 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:37:24 +00:00
sigmund@google.com
6a6fd9cc23
typo in my last cl.
...
TBR=vsm
Review URL: http://codereview.chromium.org//8524021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1442 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:21:52 +00:00
sigmund@google.com
926a46185f
Skip view_tests, until we figure out why they are flaky.
...
Review URL: http://codereview.chromium.org//8515028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1441 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:14:58 +00:00
sigmund@google.com
e024570e01
Adding frogium: a frog-chromium architecture that runs tests in chromium that
...
were compiled with frog.
Review URL: http://codereview.chromium.org//8523024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1440 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-11 02:07:02 +00:00