Artur Signell [Wed, 18 Mar 2015 14:22:08 +0000 (16:22 +0200)]
Support JSR-356 websockets (#16738, #14432)
* Initialize Atmosphere in a context listener as JSR-356 requires
* Do not run JSR-356 or websocket tests on servers without support
* Adds /run-jsr356/ for testing JSR-356 websockets with uitest.war
* Change push path to /PUSH (from /PUSH/) to be compatible with JSR 356
endpoint mappings in Atmosphere (#14381)
Leif Åstrand [Fri, 27 Mar 2015 11:57:51 +0000 (13:57 +0200)]
Reduce reflows when sizing columns (#17315)
This patch increases the reported fps from 10 to 17 in Chrome and from 5
to 10 in Firefox. No automatic test since performance testing on our
shared testing infrastructure would be quite error-prone.
Anna Miroshnik [Fri, 6 Mar 2015 13:05:09 +0000 (16:05 +0300)]
Fix Table column header sorting on Chrome (#14796)
This fix is similar to the fix that has been made for other similar
cases (i.e. #13381).
Couldn't find a reliable way to reproduce the problem. Hopefully this
will fix the issue.
Was reproduced (before fix) on Google Chrome 40.0.2214.115 m on
TableSortingStopsWorkingOnChrome test one time (but then suddenly it
started to work again).
Was reproduced (before fix) on Project TableSorting once, as described
in the ticket. That project has been attached to the ticket.
CustomLayout now has a public default constructor. If a template is not set
using one of the setters, a warning message is displayed like in the case where
the template file is specified but not found.
Leif Åstrand [Tue, 10 Mar 2015 15:04:14 +0000 (15:04 +0000)]
Revert "Displaying tooltip in slot for touch devices (#15353)" (#17151)
Should not have been merged since there were still stuff pending ("This
patchset doesn't include styling for the error message") that was not
addressed before submitting.
Leif Åstrand [Sun, 15 Mar 2015 19:08:21 +0000 (21:08 +0200)]
Fix invalid assumptions about empty Grid (#16734, #16684)
* Don't reset to default column sizes when adding row to emtpy escalator
* Don't wait for data after size is explicilty reset to 0
* Don't assume there were previous rows when adjusting focus on add
Fabian Lange [Mon, 2 Mar 2015 12:08:02 +0000 (13:08 +0100)]
Improve performance of setNeedsMeasure (#16972).
This change removes the method LayoutDependenyTree.setNeedsMeasure which
takes a connectorId as first param.
In all places where it is used, the ComponentConnector is actually known,
so this change avoids looking it up over and over again.
Also The lookup would need to lookup the ConnectorMap every time.
Fabian Lange [Mon, 2 Mar 2015 12:28:15 +0000 (13:28 +0100)]
Improve performance of getMeasureTargetsJsArray (#16973).
This change optimizes the method
LayoutDependenyTree.getMeasureTargetsJsArray.
The previous code dumps both MeasureQueues and then iterates over the
vertical one and then checks if it is present in the horizontal one.
If it is not present it pushes the element to the array (which usually
invokes an arraycopy in js).
The new code adds both Queues to a new FastStringSet which does deal
with duplicates nicely.
While this is not much faster than the dumps, it avoids the array
allocations and the separate iteration for duplicate checking.
Artur Signell [Mon, 9 Mar 2015 11:03:02 +0000 (13:03 +0200)]
Disable auto-testing of TB2 tests on Chrome
Chrome has started auto-updating even though auto updates are
disabled on the test machines. TestBench 2 works with Chrome 41 (latest)
but opens the test in a new tab instead of in a new window and therefore
is unable to resize the browser to the correct size for screenshots.
Artur Signell [Fri, 6 Mar 2015 12:24:00 +0000 (14:24 +0200)]
Ensure refresh message is sent on invalid CSRF (#17042)
If we create an AtmospherePushConnection and a broadcaster like before we would
need to suspend the connection to ensure the AtmosphereResource is actually
added to the broadcaster
Henrik Paul [Fri, 6 Feb 2015 14:35:16 +0000 (16:35 +0200)]
Fixes subpixel allocation accuracy and speed (#16614, #16750)
This reverts workarounds used in subpixel quick fix commit 6133b2cffd0c0b0e0e360ae30330a8adbe7662f4. New logic uses Escalator's
more optimised multiple column width setting method.
Fabian Lange [Mon, 2 Mar 2015 11:16:19 +0000 (12:16 +0100)]
Improve performance of Util.collectionEquals (#16968).
This change checks the length of both collections first before iterating
them. This massively speeds up the comparison in case the collections do
not have the same length.
Also in the case where the lengths are equal, this saves the
collection2.hasNext() checks.
Sauli Tähkäpää [Wed, 25 Feb 2015 14:54:59 +0000 (16:54 +0200)]
Ensure that slider min is always smaller or equal to max. (#16776)
- Set slider min to max if max is being set to a smaller value than min,
and vice-versa.
- Set also an informative message to Slider.ValueOutOfBoundsException.
Sauli Tähkäpää [Thu, 8 Jan 2015 07:48:49 +0000 (09:48 +0200)]
Redesign ComboBox filtering, highlighting and selection behaviour.
(#15502, #9369)
Changes:
- When opening the popup, the first suggestion is always highlighted by
default unless adding new items is allowed.
- When filter matches currently selected item, that item will be
highlighted instead of the first item.
- Hitting enter or tab will always select the highlighted item.
- Closing the suggestions list by clicking outside the list no longer
selects an item to prevent accidental selections.
Test changes:
- Extended ComboBoxElement to help test filtering.
- Updated and tweaked ComboBoxResetValueTest,
ComboBoxIdenticalItemsTest and ComboboxScrollableWindowTest.
- Added ComboBoxSelectingTest and
ComboBoxSelectingWithNewItemsAllowedTest.
- Updated some tests that were using keyboard navigation.
Artur Signell [Mon, 23 Feb 2015 21:42:34 +0000 (23:42 +0200)]
Fix handling of disconnection with push (#15330)
* The resource should not be closed when the client disconnects
* Removed "automatic" disconnection which was needed when onresume was not handled
* Don't call disconnect twice for cancelled connections