[TestResultServer] Move the resource loading into a dedicated class
https://bugs.webkit.org/show_bug.cgi?id=99246

Reviewed by Ojan Vafai.

A new 'loader' namespace is created, containing the request method (previously located in dashboard_base.js)
and the new Loader object, which handles the loading of all the necessary data the dashboard might require.

* TestResultServer/static-dashboards/aggregate_results.html: Include the loader.js source file.
* TestResultServer/static-dashboards/builders.js:
(requestBuilderList): Use the request method located in the loader namespace instead of the removed doXHR method.
(onBuilderListLoad): Now parses the response text of the passed-in XHR. When all the builder lists are loaded the
resource loader object is notified appropriately.
(onErrorLoadingBuilderList): The partial function that calls this function also adds an XHR parameter.
* TestResultServer/static-dashboards/dashboard_base.js: Much of the resource loading-related code is moved to loader.js.
The Loader object is now used to load all the required resources.
(parseParameters): Don't push the 'builder' parameter into the current state if the unit tests are being run.
(resourceLoadingComplete): This method gets called when all the resources are loaded and the dashboard should
proceed with generating the page.
(handleLocationChange):
* TestResultServer/static-dashboards/flakiness_dashboard.html: Include the loader.js source file.
* TestResultServer/static-dashboards/flakiness_dashboard.js: The request method has been relocated to the loader namespace.
* TestResultServer/static-dashboards/flakiness_dashboard_unittests.js: The affected test cases are modified appropriately.
(test):
* TestResultServer/static-dashboards/loader.js: Added.
(.): A new namespace is introduced, publicly exporting the request method that performs an XHR operation and a Loader object
which oversees resource loading. The loading is done in steps, first loading the builders list, after that the results files
the current dashboard needs, and lastly the TestExpectations files if they are required by the dashboard. When done the loader
calls the resourceLoadingComplete method located in dashboard_base.js. This signals the dashboard all resources are available
and it can proceed with generating the dashboard page.
* TestResultServer/static-dashboards/loader_unittests.js: Added. Contains unit tests for the Loader object, covering the
incremental loading and the loading of results files and TestExpectations files. The builders list loading is currently not
tested as the unit tests page overrides related methods that possibly affect other tests' behavior.
* TestResultServer/static-dashboards/run-unittests.html: Now includes the loader.js and loader_unittests.js source file.
Refactors the code a bit due to changes in how onBuilderListLoad behaves.
* TestResultServer/static-dashboards/timeline_explorer.html: Now includes the loader.js source file.
* TestResultServer/static-dashboards/treemap.html: Ditto. Also refactors the code to take into account
that all the test files are now loaded before generating the dashboard page.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132034 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, a follow-up to r132034 where I forgot to address
Ojan's review comment about the race condition in handleLocationChange.

* TestResultServer/static-dashboards/dashboard_base.js:
(handleLocationChange):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed Chromium rebaselines.

* platform/chromium/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed GTK gardening.

Adding flaky crashing expectations for fast/dom/gc-acid3.html
and http/tests/misc/acid3.html.
Removing timeout expectations for tests that were fixed in r131942.
Reclassifying svg/animations/animate-css-xml-attributeType.html
as a non-flaky failure.

* platform/gtk/TestExpectations:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132037 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed follow up to update test result after r132033.

* bindings/scripts/test/V8/V8TestObj.cpp:
(WebCore::V8TestObj::installPerContextProperties):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Rebaseline pixel expectations after r131941 and r131991, part 1.

* platform/efl/fast/repaint/4774354-expected.png:
* platform/efl/fast/repaint/4776765-expected.png:
* platform/efl/fast/repaint/absolute-position-changed-expected.png:
* platform/efl/fast/repaint/add-table-overpaint-expected.png: Removed.
* platform/efl/fast/repaint/background-generated-expected.png:
* platform/efl/fast/repaint/background-misaligned-expected.png:
* platform/efl/fast/repaint/backgroundSizeRepaint-expected.png:
* platform/efl/fast/repaint/block-layout-inline-children-float-positioned-expected.png:
* platform/efl/fast/repaint/block-layout-inline-children-replaced-expected.png:
* platform/efl/fast/repaint/block-no-inflow-children-expected.png:
* platform/efl/fast/repaint/block-selection-gap-in-composited-layer-expected.png:
* platform/efl/fast/repaint/block-selection-gap-in-table-cell-expected.png:
* platform/efl/fast/repaint/block-selection-gap-stale-cache-2-expected.png:
* platform/efl/fast/repaint/block-selection-gap-stale-cache-expected.png:
* platform/efl/fast/repaint/border-fit-lines-expected.png:
* platform/efl/fast/repaint/border-radius-repaint-expected.png:
* platform/efl/fast/repaint/border-repaint-glitch-expected.png:
* platform/efl/fast/repaint/box-shadow-dynamic-expected.png:
* platform/efl/fast/repaint/box-shadow-inset-repaint-expected.png:
* platform/efl/fast/repaint/bugzilla-3509-expected.png:
* platform/efl/fast/repaint/bugzilla-5699-expected.png:
* platform/efl/fast/repaint/bugzilla-6278-expected.png:
* platform/efl/fast/repaint/bugzilla-6388-expected.png:
* platform/efl/fast/repaint/bugzilla-6473-expected.png:
* platform/efl/fast/repaint/bugzilla-7235-expected.png:
* platform/efl/fast/repaint/button-spurious-layout-hint-expected.png:
* platform/efl/fast/repaint/canvas-putImageData-expected.png:
* platform/efl/fast/repaint/caret-outside-block-expected.png:
* platform/efl/fast/repaint/change-transform-expected.png:
* platform/efl/fast/repaint/clip-with-layout-delta-expected.png:
* platform/efl/fast/repaint/clipped-relative-expected.png:
* platform/efl/fast/repaint/containing-block-position-change-expected.png:
* platform/efl/fast/repaint/content-into-overflow-expected.png:
* platform/efl/fast/repaint/continuation-after-outline-expected.png:
* platform/efl/fast/repaint/control-clip-expected.png:
* platform/efl/fast/repaint/create-layer-repaint-expected.png:
* platform/efl/fast/repaint/delete-into-nested-block-expected.png:
* platform/efl/fast/repaint/dynamic-table-vertical-alignment-change-expected.png:
* platform/efl/fast/repaint/erase-overflow-expected.png:
* platform/efl/fast/repaint/fixed-after-scroll-expected.png:
* platform/efl/fast/repaint/fixed-and-absolute-position-scrolled-expected.png:
* platform/efl/fast/repaint/fixed-child-move-after-scroll-expected.png:
* platform/efl/fast/repaint/fixed-child-of-fixed-move-after-scroll-expected.png:
* platform/efl/fast/repaint/fixed-child-of-transformed-move-after-scroll-expected.png:
* platform/efl/fast/repaint/fixed-expected.png:
* platform/efl/fast/repaint/fixed-move-after-keyboard-scroll-expected.png:
* platform/efl/fast/repaint/fixed-move-after-scroll-expected.png:
* platform/efl/fast/repaint/fixed-position-transparency-with-overflow-expected.png:
* platform/efl/fast/repaint/fixed-scale-expected.png:
* platform/efl/fast/repaint/fixed-scroll-simple-expected.png:
* platform/efl/fast/repaint/fixed-table-cell-expected.png:
* platform/efl/fast/repaint/fixed-table-overflow-expected.png:
* platform/efl/fast/repaint/fixed-table-overflow-zindex-expected.png:
* platform/efl/fast/repaint/fixed-tranformed-expected.png:
* platform/efl/fast/repaint/float-in-new-block-with-layout-delta-expected.png:
* platform/efl/fast/repaint/float-move-during-layout-expected.png:
* platform/efl/fast/repaint/float-new-in-block-expected.png:
* platform/efl/fast/repaint/float-overflow-expected.png: Added.
* platform/efl/fast/repaint/float-overflow-right-expected.png: Added.
* platform/efl/fast/repaint/gradients-em-stops-repaint-expected.png:
* platform/efl/fast/repaint/iframe-scroll-repaint-expected.png:
* platform/efl/fast/repaint/inline-block-resize-expected.png:
* platform/efl/fast/repaint/inline-color-change-expected.png:
* platform/efl/fast/repaint/inline-horizontal-bt-overflow-expected.png:
* platform/efl/fast/repaint/inline-outline-repaint-expected.png:
* platform/efl/fast/repaint/inline-vertical-lr-overflow-expected.png:
* platform/efl/fast/repaint/inline-vertical-rl-overflow-expected.png:
* platform/efl/fast/repaint/intermediate-layout-position-clip-expected.png:
* platform/efl/fast/repaint/intermediate-layout-position-expected.png:
* platform/efl/fast/repaint/invisible-objects-expected.png:
* platform/efl/fast/repaint/japanese-rl-selection-clear-expected.png:
* platform/efl/fast/repaint/japanese-rl-selection-repaint-expected.png:
* platform/efl/fast/repaint/japanese-rl-selection-repaint-in-regions-expected.png:
* platform/efl/fast/repaint/layer-full-repaint-expected.png:
* platform/efl/fast/repaint/layer-hide-when-needs-layout-expected.png:
* platform/efl/fast/repaint/layer-visibility-expected.png:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132039 268f45cc-cd09-0410-ab3c-d52691b4dbfc