Changeset 109606 in webkit


Ignore:
Timestamp:
Mar 2, 2012 1:13:19 PM (12 years ago)
Author:
dpranke@chromium.org
Message:

links for virtual tests are broken in the flakiness dashboard
https://bugs.webkit.org/show_bug.cgi?id=80180

Reviewed by Ojan Vafai.

  • TestResultServer/static-dashboards/flakiness_dashboard.html:

(linkHTMLToOpenWindow):

  • TestResultServer/static-dashboards/flakiness_dashboard_tests.js:

(testLinkHTMLToOpenWindow): added.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r109581 r109606  
     12012-03-02  Dirk Pranke  <dpranke@chromium.org>
     2
     3        links for virtual tests are broken in the flakiness dashboard
     4        https://bugs.webkit.org/show_bug.cgi?id=80180
     5
     6        Reviewed by Ojan Vafai.
     7
     8        * TestResultServer/static-dashboards/flakiness_dashboard.html:
     9        (linkHTMLToOpenWindow):
     10        * TestResultServer/static-dashboards/flakiness_dashboard_tests.js:
     11        (testLinkHTMLToOpenWindow): added.
     12
    1132012-03-02  Philippe Normand  <pnormand@igalia.com>
    214
  • trunk/Tools/TestResultServer/static-dashboards/flakiness_dashboard.html

    r104735 r109606  
    11751175function linkHTMLToOpenWindow(url, text)
    11761176{
     1177    // FIXME: We probably need a more general way to map virtual tests
     1178    // to their underlying actual tests.
     1179    url = url.replace('platform/chromium/virtual/gpu/', '')
    11771180    return '<a href="' + url + '" target="_blank">' + text + '</a>';
    11781181}
  • trunk/Tools/TestResultServer/static-dashboards/flakiness_dashboard_tests.js

    r109063 r109606  
    405405}
    406406
     407function testLinkHTMLToOpenWindow()
     408{
     409    var text = 'text';
     410    // Test that we map regular tests and virtual tests properly.
     411    self.assertEquals(linkHTMLToOpenWindow('http://localhost/fast/canvas/foo.html', text),
     412                      '<a href="http://localhost/fast/canvas/foo.html" target="_blank">text</a>');
     413    self.assertEquals(linkHTMLToOpenWindow('http://localhost/platform/chromium/virtual/gpu/fast/canvas/foo.html', text),
     414                      '<a href="http://localhost/fast/canvas/foo.html" target="_blank">text</a>');
     415}
     416
    407417function runTests()
    408418{
Note: See TracChangeset for help on using the changeset viewer.