BuildRequest should have associated platform and test
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Mar 2016 04:18:39 +0000 (04:18 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Mar 2016 04:18:39 +0000 (04:18 +0000)
commitb840fc9d7bd96d75a117da346c3b8ce6a13806e5
treef0cbf4084f3fd8f8909c863214c775ca62aeb11b
parentef64b251528752e0d8c3f8e1afdefdd790205170
BuildRequest should have associated platform and test
https://bugs.webkit.org/show_bug.cgi?id=156054

Reviewed by Joseph Pecoraro.

Added methods to retrieve the platform and the test associated with a build request with tests.

* public/v3/models/build-request.js:
(BuildRequest):
(BuildRequest.prototype.platform): Added.
(BuildRequest.prototype.test): Added.
* server-tests/api-build-requests-tests.js:
* server-tests/api-manifest.js: Fixed a typo. This tests /api/manifest, not /api/build-requests.
* unit-tests/buildbot-syncer-tests.js:
(.createSampleBuildRequest): Now takes Platform and Test objects to avoid hitting assertions in
BuildRequest's constructor.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@198882 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/public/v3/models/build-request.js
Websites/perf.webkit.org/server-tests/api-build-requests-tests.js
Websites/perf.webkit.org/server-tests/api-manifest.js
Websites/perf.webkit.org/unit-tests/buildbot-syncer-tests.js