Bug 155863

Summary: Migrate admin-regenerate-manifest.js to mocha.js and test v3 UI code
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Perf DashboardAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, dewei_zhu, joepeck, rniwa, slewis
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Migrates the test joepeck: review+

Ryosuke Niwa
Reported 2016-03-24 19:19:28 PDT
Migrate legacy tests/admin-regenerate-manifest.js to mocha.js, and test v3 UI code in addition to the server backend.
Attachments
Migrates the test (38.88 KB, patch)
2016-03-24 19:36 PDT, Ryosuke Niwa
joepeck: review+
Ryosuke Niwa
Comment 1 2016-03-24 19:36:24 PDT
Created attachment 274874 [details] Migrates the test
Joseph Pecoraro
Comment 2 2016-03-24 21:20:11 PDT
Comment on attachment 274874 [details] Migrates the test View in context: https://bugs.webkit.org/attachment.cgi?id=274874&action=review > Websites/perf.webkit.org/public/v3/models/manifest.js:58 > + } Nit: Semicolon. > Websites/perf.webkit.org/public/v3/models/platform.js:20 > + for (var currentTest = metric.test(); currentTest; currentTest = test.parentTest()) { This seems super sketchy. The iteration portion of the for loop is always setting the same value... and we just break because we run the loop twice with the same value. Should the iteration portion be "currentTest = currentTest.parentTest()" or could this be written in a clearer way?
Ryosuke Niwa
Comment 3 2016-03-24 21:43:08 PDT
Comment on attachment 274874 [details] Migrates the test View in context: https://bugs.webkit.org/attachment.cgi?id=274874&action=review >> Websites/perf.webkit.org/public/v3/models/platform.js:20 >> + for (var currentTest = metric.test(); currentTest; currentTest = test.parentTest()) { > > This seems super sketchy. The iteration portion of the for loop is always setting the same value... and we just break because we run the loop twice with the same value. Should the iteration portion be "currentTest = currentTest.parentTest()" or could this be written in a clearer way? Yup, it's supposed to be "currentTest = currentTest.parentTest()." Will fix and a test case before landing it.
Ryosuke Niwa
Comment 4 2016-03-25 14:55:32 PDT
Note You need to log in before you can comment on or make changes to this bug.