Attempt two at submitting this timeout fix to AsyncTestCase.

*** Reason for rollback ***

Uncovered an instance where a test is overwriting
window.clearTimeout in several tests, but never restoring it.

*** Original change description ***

Fixes a bug caused when AsyncTestCase is used with the MockClock.

The AsyncTestCase never actually cleared each step timeout when
the MockClock was installed, because the MockClock replaces the
global clearTimeout function. Make a protected clearTimeout to
correspond with the protected setTimeout (and discover some
exciting Chrome behaviors along the way.)

R=agrieve
DELTA=35  (26 added, 0 deleted, 9 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4400


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1675 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Adding getMetadata method in goog.fs.Entry to match W3C File API.

The W3C File API specifies a getMetadata method (see http://www.w3.org/TR/file-system-api/#widl-Entry-getMetadata) on Entry. On the other hand goog.fs.Entry does not provide this method.
At the same time goog.fs.Entry provides a getLastModified() which dives in the Metadata object (http://www.w3.org/TR/file-system-api/#idl-def-Metadata) and returns a specific field. This is unnecessarily restricting because it assumes that last modified date is the only field in Metadata, which is not true for Webkit and therefore for Chrome (there is also a "size" field in Metadata, even though it is not in the spec yet).

R=nweiz
DELTA=113  (109 added, 0 deleted, 4 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4401


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1676 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Make goog.async.Deferred throw an UnhandledError if there is an unhandled exception.,

Use this Error in closure's errorreporter in order to propagate the original error.

R=brenneman,nweiz,mknichel
DELTA=67  (47 added, 6 deleted, 14 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4402


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1677 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Clean up Result tests and use MockClock instead of asyncTestCase.

R=nnaze
DELTA=188  (62 added, 37 deleted, 89 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4403


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1678 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

First implementation of goog.labs.async.chain

R=nnaze
DELTA=258  (257 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4404


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1679 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Initial implementation of goog.labs.async.transform

R=nnaze
DELTA=200  (200 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4405


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1680 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Add removeInstanceForWindow() function to clean up the windowInstanceMap_ when the window being monitored is disposed.

R=chrishenry
DELTA=28  (28 added, 0 deleted, 0 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4406


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1681 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Added a @noflip annotation to the new menuitem RTL styles so they aren't changed by the CSS compiler.

R=chrishenry,efernandez
DELTA=18  (17 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4407


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1682 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Add defaultPrevented property (implemented in DOM Level 3 as documented here:http://www.w3.org/TR/DOM-Level-3-Events/#events-event-type-defaultPrevented) to goog.events.Event

R=nnaze,arv
DELTA=46  (43 added, 0 deleted, 3 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4408


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1683 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Remove the redundant isDefaultPrevented method.

R=loreena,nnaze,arv
DELTA=19  (3 added, 10 deleted, 6 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4409


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1684 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Clean up combine tests to use goog.testing.MockClock instead of goog.testing.AsyncTestCase. Also abstract out boilerplate.

R=nnaze
DELTA=319  (316 added, 0 deleted, 3 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4412


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1685 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Make goog.ui.Component.prototype.removeChildren return the children that were removed.

R=chrishenry
DELTA=50  (46 added, 0 deleted, 4 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4413


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1686 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Put a try block around the invokation of the callbacks, so we can clean
up the XHR even if one of the callbacks throws an exception.

R=arv
DELTA=34  (23 added, 2 deleted, 9 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4414


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1687 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Add #getRange method on goog.db.ObjectStore, to expose the IDBKeyRange functionality.

R=venkatgv,nweiz
DELTA=599  (548 added, 0 deleted, 51 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4426


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1688 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Remove some usage of goog.string.StringBuffer from
Closure. This CL only removes usage where it is safe (unlikely
to cause performance regression).

R=johnlenz,nnaze
DELTA=23  (2 added, 12 deleted, 9 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4427


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1689 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Fix flakiness in browserchannel_test.html. Running the tests
500 times no longer shows the same flakiness. (There's another
test file that's flaky in ie7 though.) This was the most egregious
flaky test this morning; it's not reproducible on local VM though.

R=nicksantos
DELTA=47  (37 added, 3 deleted, 7 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4428


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1690 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

This port of jsaction off maps is not in use.

R=chrishenry
DELTA=1839  (7 added, 1781 deleted, 51 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4429


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1691 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Update aria states when slider value changes

R=chrishenry
DELTA=16  (14 added, 1 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4433


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1692 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Fix type warnings

R=akatkova
DELTA=7  (2 added, 0 deleted, 5 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4441


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1693 0b95b8e8-c90f-11de-9d4f-f947ee5921c8

Adds an isDisposed() check in ImageLoader.loadImage_. There is
an odd case in IE7 where image's error handler may fire
immediately before we yield js control. This is repeatable
1 in 10 times with a reduced test case as well. This gets
rid of flakiness in imageloader_test.

Update imageloader_test to no longer use convoluted custom
test case and use async test case instead.

R=nnaze,nicksantos
DELTA=265  (106 added, 123 deleted, 36 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4442


git-svn-id: http://closure-library.googlecode.com/svn/trunk@1694 0b95b8e8-c90f-11de-9d4f-f947ee5921c8