Add stability to tests for web API statistics
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Sep 2018 23:15:27 +0000 (23:15 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Sep 2018 23:15:27 +0000 (23:15 +0000)
commitaa71cb1f49ef4a2d55176c06d54ea923401585d4
tree6c7ea00a01bf14d0e38ad3193efe508301104072
parent5d4a404b16e27ff7e3acd7a97d68f32620c25a6f
Add stability to tests for web API statistics
https://bugs.webkit.org/show_bug.cgi?id=189560
<rdar://problem/44396413>

Patch by Woodrow Wang <woodrow_wang@apple.com> on 2018-09-14
Reviewed by Chris Dumez.

Using js-test added some data to the font loading collection, which made the tests dependent on
js-test.js. Thus, if any changes were made to js-test.js the tests for web API statistics would
fail. This patch removes the dependency on js-test. Also, this patch speeds up each test
significantly by bypassing the timer in ResourceLoadObserver for recording the statistics.

* http/tests/webAPIStatistics/canvas-read-and-write-data-collection-expected.txt:
* http/tests/webAPIStatistics/canvas-read-and-write-data-collection.html:
* http/tests/webAPIStatistics/font-load-data-collection-expected.txt:
* http/tests/webAPIStatistics/font-load-data-collection.html:
* http/tests/webAPIStatistics/navigator-functions-accessed-data-collection-expected.txt:
* http/tests/webAPIStatistics/navigator-functions-accessed-data-collection.html:
* http/tests/webAPIStatistics/screen-functions-accessed-data-collection-expected.txt:
* http/tests/webAPIStatistics/screen-functions-accessed-data-collection.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236021 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/webAPIStatistics/canvas-read-and-write-data-collection-expected.txt
LayoutTests/http/tests/webAPIStatistics/canvas-read-and-write-data-collection.html
LayoutTests/http/tests/webAPIStatistics/font-load-data-collection-expected.txt
LayoutTests/http/tests/webAPIStatistics/font-load-data-collection.html
LayoutTests/http/tests/webAPIStatistics/navigator-functions-accessed-data-collection-expected.txt
LayoutTests/http/tests/webAPIStatistics/navigator-functions-accessed-data-collection.html
LayoutTests/http/tests/webAPIStatistics/screen-functions-accessed-data-collection-expected.txt
LayoutTests/http/tests/webAPIStatistics/screen-functions-accessed-data-collection.html