Commit graph

42000 commits

Author SHA1 Message Date
jacobr@google.com 2af03fc05b Enhanced performance by removing unused UI, reducing the # of absolutely positioned elements thus reducing the # of render layers, and increasing the amount of logic performed using string concat instead of DOM manipulation.
Also added back a bugfix  change I'd thought I'd landed to HTMLDocument,

Added some significant polish and missing features to the keyboard shortcuts
by correctly taking into account that some views may be partially visible.

New hotness available at:
http://dart.googleplex.com/jacobr-swarm-js.html

I'm finally not embarrassed by the performance when scrolling between pages of views on the iPad.  Not quite 60fps but close enough to 30fps under the worst conditions scrolling horizontally.

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3543015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@165 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 22:15:50 +00:00
sra@google.com 5883649a35 Browser compat fix for setInterval and SetTimeout.
Firefox passes an argument to the TimeoutHander, Chrome doesn't.  Fix
by dropping all arguments before calling the strict Dart function.

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3544020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@163 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 22:08:36 +00:00
terry@google.com acd85abe79 Fixed --optimize not working.
- Output files are different file names.
    - And -optimize requires --disable-type-optimizations for code to work.

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3550017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@162 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 22:07:55 +00:00
eub@google.com 0c2c6482b8 Modify the OfflineHTMLConverter's behavior when it fails to download
an image: instead of silently emitting a non-local URL that will fail
offline, rewrite to a blank image.

Add an arg and use it to save images as local files, rather than
embedding them in the HTML as data://.
Review URL: https://chromereviews.googleplex.com/3535014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@159 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 21:45:42 +00:00
sigmund@google.com 06ec980f3f get_drt.py: renamed from get_dartium, tries to get the latest DumpRenderTree
from the most recent archive location that the user has access to.

Review URL: https://chromereviews.googleplex.com/3532018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@157 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 21:43:51 +00:00
zundel@google.com a7a60d23c2 Fix build break on co19 file
I cannot get the test to fail locally, so marked it 'Skip'


git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@154 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 20:34:56 +00:00
codefu@google.com fa4590de77 Make the system libraries less brittle to recompile
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3508015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@153 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 20:21:04 +00:00
sra@google.com 5f7a1541ef Implement List.xxxRange methods for DOM types in wrapping DOM.
All implementations are stubs.  Since the lists are read-only,
only getRange need to be reimplemented.

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3538017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@148 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 19:17:44 +00:00
zundel@google.com 6bd18f8086 Fix name shadowing problem in compiler
Names in a scope should create shadow copies of names in enclosing scopes.

BUG=5382396

Review URL: https://chromereviews.googleplex.com/3543020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@147 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 19:17:31 +00:00
fabiomfv@google.com be8e6320b3 http://b/issue?id=5407575
Review URL: https://chromereviews.googleplex.com/3548017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@145 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 18:57:17 +00:00
arv@google.com 21cc2799ec Dart DOM: Add Element attributes setter
BUG=None
TEST=None

Review URL: https://chromereviews.googleplex.com/3526016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@143 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 18:48:23 +00:00
asiva@google.com 0b30a49971 5419598: Add a setjmp around the isolate spawning code so that parse errors
are caught and reported as errors.
5417103: Add a setjmp around Dart_Run_Loop so that parse errors
are caught and reported as errors.
Review URL: https://chromereviews.googleplex.com/3553012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@140 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 18:33:36 +00:00
srdjan@google.com 44392fdb03 Fix resolving of implicit closures: treat null objects same as instances of Object.
Review URL: https://chromereviews.googleplex.com/3551013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@138 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 16:31:31 +00:00
vsm@google.com 1bcf461c37 One more optional arg fix
Forgot this one.

Review URL: https://chromereviews.googleplex.com/3530017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@135 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 16:11:05 +00:00
floitsch@google.com fdf276dd2a Add test for const constructions with named arguments.
Review URL: https://chromereviews.googleplex.com/3530018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@134 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:56:33 +00:00
codefu@google.com da07089568 DynamicElementImplementation: return dynamic type
MemberBuilder: accept broken methods
DeltaAnalyzer: Corelib types

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3531013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@133 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:50:13 +00:00
zundel@google.com fa609a58ec Updates the resolver to print the line and column number for name conflicts
Along the way I gave the ResoverTest more specific errors to test
against and found some cases that weren't being flagged properly
as errors.

BUG=5415945

Review URL: https://chromereviews.googleplex.com/3544012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@132 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:35:05 +00:00
floitsch@google.com 251cb020ec Add comments to DateTimeTest.
R=ngeoffray@google.com

Review URL: https://chromereviews.googleplex.com/3540014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@131 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:28:14 +00:00
sgjesse@google.com 63782c5c50 Disable process tests on Linux
They can cause timeout once in a while.

R=ager@google.com

BUG=dart:1
TEST=

Review URL: https://chromereviews.googleplex.com/3531019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@130 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:25:30 +00:00
floitsch@google.com 63dd99d5e6 Remove TimeZone comment.
R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3547014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@129 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:19:02 +00:00
floitsch@google.com ad89e94d67 Fix bad merge.
Unbreaks build.
TBR=ngeoffray

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3542013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@128 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 15:04:55 +00:00
sgjesse@google.com 6abaad8aa1 Restructured socket tests and fixed readUntil on InputStream
Most of the socket tests where written with closing both the server and client ends of the socket. However on Windows this can lead to errors once in a while (WSAECONNRESET). The tests now closes the socket in the client and and waits for a close event on the server side.

The readUntil on InputStream did not take data in the internal buffer into account. This has been fixed and the related test have been rewritten to check for two patterns which together will match all the input.

R=ager@google.com

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3536016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@126 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:47:49 +00:00
floitsch@google.com 1229e5b8db Implement Date.weekday.
Review URL: https://chromereviews.googleplex.com/3541012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@125 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:47:41 +00:00
floitsch@google.com 410583d73d Get rid of duration in TimeZone class.
Review URL: https://chromereviews.googleplex.com/3538012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@124 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:35:56 +00:00
ager@google.com 30ede18056 Implement first version of directory listing library on Windows.
R=sgjesse@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3543018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@123 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:28:05 +00:00
floitsch@google.com 885419a1bb Add missing files from last commit (121).
TBR=ngeoffray.
R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3534016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@122 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:26:48 +00:00
floitsch@google.com 382580f9a7 Rename Time to Duration and adapt methods.
Review URL: https://chromereviews.googleplex.com/3536013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@121 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:21:57 +00:00
karlklose@google.com d95c89a2f4 Allow #import and #source in multi tests.
Review URL: https://chromereviews.googleplex.com/3511021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@119 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 14:13:03 +00:00
zundel@google.com d13c2d80f7 Simplifies a couple of tests that are failing in the compiler.
This doesn't actually fix anything, just makes a couple of tests simpler.
These tests are meant to test the visibility of symbols in libraries,
but there was some extra baggage in the test that might make it
fail for unrelated reasons.

BUG=5406175

Review URL: https://chromereviews.googleplex.com/3536017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@118 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 13:51:37 +00:00
floitsch@google.com 57fb110ca4 Update isolate.status file.
R=ngeoffray@google.com

Review URL: https://chromereviews.googleplex.com/3535016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@117 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 12:43:02 +00:00
zundel@google.com 10c5e2ec41 Include variable setting for Mac
R=benl@google.com

Review URL: https://chromereviews.googleplex.com/3531018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@116 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 12:29:12 +00:00
jgw@google.com 4265230569 Fixes declaration of named-parameter trampoline parameters
(to avoid name conflicts with explicit ones).
BUG=5404211

Review URL: https://chromereviews.googleplex.com/3544015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@115 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 12:27:59 +00:00
benl@google.com 7413962616 Review URL: https://chromereviews.googleplex.com/3532014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@113 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 11:40:31 +00:00
benl@google.com 7ddf68b7b3 Review URL: https://chromereviews.googleplex.com/3507025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@112 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 11:19:01 +00:00
ngeoffray@google.com 84c81a082d Conditionnaly cleanup after running a command.
Review URL: https://chromereviews.googleplex.com/3546016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@111 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 11:04:54 +00:00
ager@google.com 7d4f364d53 Minor changes to documentation generation.
Filter out private classes so no file is generated for them.

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3540013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@110 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 11:02:55 +00:00
floitsch@google.com 19610c461e Unbreak the build.
Update status file, while investigating what's going wrong.

TBR=ngeoffray

R=ngeoffray@google.com

Review URL: https://chromereviews.googleplex.com/3535015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@109 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:48:22 +00:00
ngeoffray@google.com 61486c2267 Small clenaup in the python scripts to make sure all tests get their Cleanup method called.
Review URL: https://chromereviews.googleplex.com/3534013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@108 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:47:32 +00:00
floitsch@google.com 15727ed074 Rename DateTime to Date.
Review URL: https://chromereviews.googleplex.com/3529013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@107 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 10:14:49 +00:00
ngeoffray@google.com eebda50623 Update status file to reflect what's implemented in dartc and fix bot.
Review URL: https://chromereviews.googleplex.com/3551014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@104 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 09:28:21 +00:00
floitsch@google.com 98d704a3cb Remove Date class and remove .time from DateTime.
Review URL: https://chromereviews.googleplex.com/3508024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@103 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 09:20:30 +00:00
ngeoffray@google.com d42cadb575 Remove directory because it clashes with the existing runtime/tests/dart.
Review URL: https://chromereviews.googleplex.com/3502035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@102 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 08:38:43 +00:00
jgw@google.com e2daa7e89b Remove support for variadic parameters.
Review URL: https://chromereviews.googleplex.com/3528012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@101 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 08:28:42 +00:00
ngeoffray@google.com 808542f40b Move co10 tests to tests/co19.
Review URL: https://chromereviews.googleplex.com/3538014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@100 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 08:06:12 +00:00
srdjan@google.com 5dd35f18ae Fix crash in test.py when timing out.
Review URL: https://chromereviews.googleplex.com/3543017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@99 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:59:02 +00:00
sgjesse@google.com cc0ffa0766 Minor changes to Socket and File
* align the definition of the exception class with how ProcessException ended up
* add constants for redability

R=ager@google.com

BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3551012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@98 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:57:34 +00:00
srdjan@google.com b0af113468 Address Siva's suggestion.
Review URL: https://chromereviews.googleplex.com/3546013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@97 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:46:45 +00:00
kasperl@google.com b0772a497d Remove more uses of the old syntax for optional arguments.
@antonm: I still have to filter out all the Dart code in:

  client/html/generated/...

and the file:

  client/generated/src/interface/WebKitCSSMatrix.dart

I hope we can fix this soon.

R=ngeoffray@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3537015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@96 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:37:15 +00:00
ngeoffray@google.com a13f376270 Update status file to get bot greens.
Review URL: https://chromereviews.googleplex.com/3544014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@95 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:18:59 +00:00
ngeoffray@google.com c05cfb10c0 - Now that prefixes have been implemented, remove the trampoline hack for calling main in a browser test.
- Update some tests to define #library, as the #library is required by the dart blob we're emitting for testing in the browser
- Update language.status to reflect reality.
Review URL: https://chromereviews.googleplex.com/3522016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@94 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 07:11:49 +00:00