Create a mock version of the goog.events.OnlineHandler object for use in unit tests.

R=arv
DELTA=167  (166 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4212


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

Fix compile warnings in goog.ui.Button and its use of ButtonRenderer

R=chrishenry
DELTA=15  (4 added, 1 deleted, 10 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4214


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

Updates closure slider component, such that when the move to point (on click)
option is enabled, the component determines which value to move to based on the
current step size.

The slider component currently disregards the step size in this case, which
allows users to position the thumb at arbitrary locations when move to point is
enabled. This is inconsistent with dragging the thumb, the latter restricts
thumb placement only to values based on step size. This inconsistency makes it
unfeasible to use the move to point option for sliders that have a step size.


R=chrishenry,arv
DELTA=87  (64 added, 4 deleted, 19 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4215


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

Make failures in setUpPage cause tests to fail.

Now if there is a failure in setUpPage, all tests are failed with the exception
in setUpPage, much like they would be in setUp.

R=chrishenry
DELTA=66  (50 added, 1 deleted, 15 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4221


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

Fix removeformatting tests for Chrome 16
It looks like execCommand('insertImage') started inserting
garbage at the end of the selection. This garbage doesn't
appear to hurt the user, so just leave it alone for now.

R=marcosalmeida,ojan
DELTA=40  (33 added, 0 deleted, 7 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4222


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

fix range_test for chrome bug fixes

R=chrishenry,nnaze
DELTA=6  (5 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4223


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

Add a new option to scrollIntoContainerView method to let it return the
calculated scrollLeft, scrollTop values only. Because sometime we don't
want to set the new scroll position to container element immediately.

R=eae,danielwh
DELTA=33  (25 added, 0 deleted, 8 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4224


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

Update the list of browsers which erroneously throw their online/offline events on the body rather than the window to include IE before version 9.  IE8 was observed to do so in local tests, and earlier versions don't support events at all.  IE9 was tested and doesn't suffer from this flaw, presumably IE10 is also fixed.

R=arv
DELTA=9  (2 added, 0 deleted, 7 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4225


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

Make browser channel sensitive to navigator.online.  If the offline event occurs during the lifetime of an XHR or Trident request, that request will be abandoned.  If the channel is offline when a request is issued, that request will fail immediately.  The back channel will not retry connections while we are offline.

R=mpd
DELTA=244  (210 added, 9 deleted, 25 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4226


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

Allow strings or numbers as symbol IDs.

R=ssaviano
DELTA=9  (0 added, 0 deleted, 9 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4227


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

Swallow events to prevent page scrolling.

R=attila,gboyer
DELTA=2  (1 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4228


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

Reimplements the buffered channel's connection detection to be smarter
and avoid sending a never-ending stream of control messages, which
puts a lot of pressure on garbage collection (and may look like a
memory leak).

R=johncox,chrishenry
DELTA=122  (95 added, 13 deleted, 14 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4232


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

Attempt to fix test flakiness in Collectable/EncryptedStorage tests.
My suspicion lies in flakiness on the actual storage mechanism,
so I'm stubbing that with a fake mechanism.

R=nicksantos,azzie
DELTA=361  (99 added, 28 deleted, 234 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4233


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

fix JSDoc for PopupBase function that should be protected but was marked private

R=arv
DELTA=10  (5 added, 0 deleted, 5 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4234


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

Make the class names returned by TwoThumbSlider.getCssClass
rename-able.

Fixes issue 423.

R=vbhasin
DELTA=44  (43 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4235


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

Fix flakiness in performance timer test.

R=nicksantos
DELTA=29  (8 added, 6 deleted, 15 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4236


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

Allow the use of streaming XHRs in browser channel in versions 10+, where it is now supported.  Note that useragent.js determines its IE version number based on the document.documentMode property.  This means that streaming XHR will only actually be used if the browser's document mode is IE10 standards, and not if it's a compatibility mode.

R=mpd
DELTA=1  (0 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4237


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

Fix externally reported bug on Android version. Also, greatly simplify
logic of this file with helper functions.

Bug: http://code.google.com/p/closure-library/issues/detail?id=279

R=adeboor
DELTA=68  (41 added, 4 deleted, 23 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4238


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

Fix some Closure compiler warnings.

R=nicksantos,mpd
DELTA=147  (51 added, 81 deleted, 15 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4241


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

Add upcoming user agent for Firefox to user agent unit test.

R=chrishenry,mpd
DELTA=30  (26 added, 1 deleted, 3 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=4250


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