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