sra@google.com
583bed4f3f
Suppress warning checks on wrapping_dom.dart
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9167035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3174 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 01:46:38 +00:00
sra@google.com
6fa3ec347e
Refactor DOM generator.
...
Each target (approximately) is now represented by a 'System'. This
should be helpful in merging in the dart:hmtl code - it can be another
System (or 2 - one for frog, one for VM).
There are more changes to come. In particular, I want to make the
class/interface templates per-system.
Checkpoint
BUG=
TEST=
Review URL: http://codereview.chromium.org//9181010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3172 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-11 01:23:34 +00:00
podivilov@google.com
38e453baa2
Disable even more dart:html event related tests broken by WebKit changes.
...
See issue 1005.
TBR=sra@google.com
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3151 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 16:18:53 +00:00
jacobr@google.com
20e99ef0c2
Support map in generated dart:html files.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9167006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3128 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 04:26:52 +00:00
nweiz@google.com
6828d81999
Fix FrozenElementList#forEach.
...
TBR
Review URL: http://codereview.chromium.org//9146017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3123 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-10 00:17:41 +00:00
sra@google.com
8bec9d5bd1
Remove everything to do with snippets
...
We don't use snippets and there are other mechanisms that can get the
same effect. IDL-side modifications can be expressed as supplemental
IDL; generated-code-side modifications as templates or tweaks to the
generator.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9152018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3120 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-09 23:08:45 +00:00
whesse@google.com
84fc2e6305
Use test.dart for dartc buildbot. Ensure that test.dart creates the build directory.
...
BUG=
TEST=rm -rf out; tools/test.dart -cdartium
Review URL: http://codereview.chromium.org//9155001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3100 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-09 15:47:43 +00:00
sra@google.com
87209aa2b8
cl # Enter a description of the change.
...
Add missing file.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9127020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3071 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-07 04:01:02 +00:00
sra@google.com
eade45daf7
Remove last 'extra_snippet'
...
The last remaining piece of snippet code is moved to an ordinary file.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9123023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3070 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-07 03:56:54 +00:00
sra@google.com
cabddd03f4
More fixes for foo.continue()
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9127017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3066 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-07 02:51:23 +00:00
sra@google.com
007933c446
Avoid generating "foo.continue()" because JSCompiler chokes.
...
Generate foo['continue']() instead.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9122019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3065 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-07 01:44:05 +00:00
sra@google.com
24feb26169
Fix type on _Collections.map; Fix removal of native file.
...
Two oversights from previous changes.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9124025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3064 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-07 00:37:06 +00:00
sra@google.com
d4e44a3670
Fix for Issue 1075
...
Don't use ImplementationFunction - that is the C++ name.
There used to be a problem with IDBCursor.delete - some browsers didn't like the call foo.delete()
The way to fix this if it reappears is to generate foo['delete']() instead.
BUG=1075
TEST=
Review URL: http://codereview.chromium.org//9125011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3060 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-06 22:15:49 +00:00
jmesserly@google.com
b08fcc744b
Small performance improvement: avoid looking up builtin types too much by tracking them, particularly ones in coreimpl like NumImplementation.
...
I also did a few refactorings:
* Tried to tame the "nativeName" stuff to keep the code paths from forking too much
* Removed the bad code duplication between needsConversion and convertTo in Value (they had gone out of sync again!)
* Simplified the function wrapping code & made it clear it's about isolates. The code still checks for DOM, but conceptually it's part of our isolate impl. If we had a different way to tag native function types (e.g. perhaps the "native" keyword, if it's allowed in that position?) we could remove the DOM check there.
Review URL: http://codereview.chromium.org//9110027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3057 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-06 21:36:59 +00:00
nweiz@google.com
b015c01998
Properly type the clone method for Element and a few of its subclasses.
...
TBR
Review URL: http://codereview.chromium.org//9127005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3051 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-06 19:44:42 +00:00
sra@google.com
102b4213ea
Add map to dart:dom collections.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9114026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3021 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-06 03:43:42 +00:00
sra@google.com
de052963a9
Make most native types hidden.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9109032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3019 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 23:41:09 +00:00
sra@google.com
e58a667b25
Remove monkey_dom.
...
It has outlived its usefulness as a sanity check.
We don't use it anymore and I don't want to include it in refactoring.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9114019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3016 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 22:03:04 +00:00
sra@google.com
e63c4dc213
Remove 'browser analysis' from dartgenerator.py
...
We don't need a list of 'good types' anymore.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9110016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@3014 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 21:35:24 +00:00
whesse@google.com
9ae78036dc
Fix static type warnings in test.dart.
...
BUG=
TEST=dartc tools/test.dart ; frog tools/test.dart
Review URL: http://codereview.chromium.org//9109012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2997 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 14:08:15 +00:00
sra@google.com
8fa41465c9
Use .dynamic to suppress dartc warning.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9113004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2979 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 05:40:32 +00:00
sra@google.com
142b3202a5
Revert "Revert "Refresh dart:dom""
...
This reverts commit bd91f6600f0ac42bb7eab9f3b544c7c5ba230507.
Retrying, with dartc fixes.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9106002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2978 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 02:11:58 +00:00
nweiz@google.com
694afe0a9f
Support SVGElement#elements, #innerHTML, and #outerHTML. Also add a .svg constructor.
...
Review URL: http://codereview.chromium.org//8965006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2975 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 01:17:01 +00:00
sra@google.com
8e4e14d185
Revert "Refresh dart:dom"
...
This reverts commit 095ef24e8064ac34e781e6a31fb1e0ee975de1e2.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9103001
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2974 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 01:10:45 +00:00
sra@google.com
d23eb296b6
Refresh dart:dom
...
(1) Ignore new WebKit [Supplement=TargetInterface] attributes
Filed http://code.google.com/p/dart/issues/detail?id=1047 to improve on this.
(2) Refresh generated files.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9084005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2973 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-05 00:36:50 +00:00
pquitslund@google.com
0aeb29e533
Hacking format of Expect failure messages to play nice with rendered HTML.
...
The culprits are the '<' and '>' in this bit:
_fail("Expect.equals(expected: <$expected>, actual: <$actual>$msg) fails.")
in Expect.equals(..) which cause $expected and $actual to get treated as tags when
the message is shoveled (untreated) into an HTML page as one might do when rendering
test run results in an HTML page (e.g., http://codereview.chromium.org/9034030/ ).
This here *hack* sidesteps the issue but it's neither elegant nor properly
placed (methinks). The question is, how should this problem get fixed for real?
Thoughts/redirects greatly appreciated!
Review URL: http://codereview.chromium.org//9022042
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2954 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 18:06:10 +00:00
whesse@google.com
cafbd4b453
Add exemption for test-config.dart files to client/tests/dartc/dartc.status.
...
BUG=
TEST=tools/test.py --component=dartc
Review URL: http://codereview.chromium.org//9019045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2944 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 14:49:18 +00:00
whesse@google.com
bb7ec07431
Add client/tests/client web tests to the test.dart test script.
...
BUG=
TEST=tools/test.dart --component=dartium,chromium,frogium client
Review URL: http://codereview.chromium.org//9036009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2939 260f80e4-7a28-3924-810f-c04153c831b5
2012-01-04 11:55:08 +00:00
antonm@google.com
b84db4fda9
Enable html_tests once again.
...
Review URL: http://codereview.chromium.org//9053008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2884 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-30 12:57:56 +00:00
sra@google.com
ccbc08a03c
Disable dart:html tests broken by WebKit changes.
...
I hate to do this but it might take a little while to fix and it will be helpful to have client green in the meantime.
Issue 1005 needs to be fixed before these can be re-enabled.
The initXXXEvent methods which these tests use have been removed from WebKit. A workable solution needs to be added to the dart:dom layer.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9015016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2883 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-30 05:33:37 +00:00
sra@google.com
d646397dda
Work-around for Issue 1005 part (1)
...
CSSStyleDeclaration objects may claim hasOwnProperty is true before
property has been added.
BUG=
TEST=
Review URL: http://codereview.chromium.org//9051011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2881 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-30 05:03:22 +00:00
sra@google.com
a16ed28ed8
Parse 'static' qualifier in IDL.
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9051008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2879 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-29 22:59:49 +00:00
podivilov@google.com
28cef96e4e
Mark html/html_tests as failing in dartium.
...
TBR=antonm@google.com
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2832 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-27 16:20:37 +00:00
zundel@google.com
bc620b97a8
Moves over remaining .dart code references to 'factory' in interface declartions to 'default'
...
BUG=
TEST=
Review URL: http://codereview.chromium.org//9016026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2752 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 13:35:54 +00:00
antonm@google.com
39a9c006e4
Promote DOMType to public dart:dom type.
...
Review URL: http://codereview.chromium.org//9009002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2689 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 10:42:02 +00:00
terry@google.com
59a6cf921a
New tree objects to match CSS BNF.
...
Fairly complete CSS syntax
BUG=
TEST=
Review URL: http://codereview.chromium.org//8937017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2675 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 22:51:16 +00:00
ahe@google.com
704dc06e09
Update status files to make plain test.py work with frog, frogsh, and leg
...
Review URL: http://codereview.chromium.org//8965050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2656 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 19:24:08 +00:00
scheglov@google.com
63a96477cd
Report errors and warnings for hiding elements, issue 572.
...
http://code.google.com/p/dart/issues/detail?id=572
R=zundel@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8966029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2636 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-20 14:35:40 +00:00
ager@google.com
1aaa58f803
Make the repeating argument to timers optional.
...
R=sgjesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8992007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2577 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 12:34:12 +00:00
ahe@google.com
f5090ca7ba
Make --leg-only option work when there are arguments passed to test.py.
...
Review URL: http://codereview.chromium.org//8956012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2566 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-19 09:53:39 +00:00
shauvik@google.com
101c838d2f
Hi,
...
I had forgotten to commit the test library.
Please review it so that I can put it in.
Extracted total tests into library and reused them for dartest tests.
Thanks!
Review URL: http://codereview.chromium.org//8962007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2556 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 23:49:42 +00:00
shauvik@google.com
263a78d588
Code for Dartest which consists of two parts:
...
1. Test runner library located in client/testing/
2. Instrumentation code for adding coverage probes
Added some fixes to the AST Writer and changes to highlight instrumented nodes.
Review URL: http://codereview.chromium.org//8905021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2549 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 23:24:15 +00:00
sra@google.com
58b7ca2924
Fix generator to be consistent with http://code.google.com/p/dart/source/detail?r=2505
...
We really need to make all the DOM types 'hidden'...
BUG=
TEST=
Review URL: http://codereview.chromium.org//8969013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2509 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 05:14:38 +00:00
efortuna@google.com
e7ec099131
Make some additional classes hidden so that they are not generated when not
...
needed (fixes FF and Safari).
Review URL: http://codereview.chromium.org//8970013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2505 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 02:31:47 +00:00
nweiz@google.com
4e0ec27af4
Get rid of ObjectElement#svgDocument.
...
TBR
Review URL: http://codereview.chromium.org//8970012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2497 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 00:38:07 +00:00
rnystrom@google.com
036681063c
Move Nathan's HTML scripts over and rename to apidoc.
...
Review URL: http://codereview.chromium.org//8973004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2494 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-16 00:06:58 +00:00
nweiz@google.com
988a87d63c
Properly wrap ObjectElement#svgDocument, and regenerate release/html*.dart.
...
TBR
Review URL: http://codereview.chromium.org//8969008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2492 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 23:25:02 +00:00
nweiz@google.com
5481a15bfe
Expose ObjectElement.svgDocument.
...
TBR
Review URL: http://codereview.chromium.org//8965009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2489 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 23:15:47 +00:00
rnystrom@google.com
93324b5405
Refactor dartdoc into a class. Use method overriding to extend.
...
Review URL: http://codereview.chromium.org//8947005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2477 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 21:24:18 +00:00
nweiz@google.com
548ecd9e5e
Add a couple useful SVG constructors.
...
Review URL: http://codereview.chromium.org//8919029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2475 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-15 20:06:12 +00:00