Changeset 196084 in webkit


Ignore:
Timestamp:
Feb 3, 2016 3:01:23 PM (8 years ago)
Author:
Brent Fulgham
Message:

REGRESSION: LayoutTest http/tests/plugins/visible_plugins.html failing on Yosemite WK1
https://bugs.webkit.org/show_bug.cgi?id=153752

Reviewed by Alexey Proskuryakov.

Revise test to skip the plugins we expect to be displayed, and only display plugins
that are surprising.

  • http/tests/plugins/visible_plugins.html:
  • http/tests/plugins/visible_plugins-expected.txt:
  • platform/mac-wk2/http/tests/plugins/visible_plugins-expected.txt: Removed.
Location:
trunk/LayoutTests
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r196078 r196084  
     12016-02-03  Brent Fulgham  <bfulgham@apple.com>
     2
     3        REGRESSION: LayoutTest http/tests/plugins/visible_plugins.html failing on Yosemite WK1
     4        https://bugs.webkit.org/show_bug.cgi?id=153752
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Revise test to skip the plugins we expect to be displayed, and only display plugins
     9        that are surprising.
     10
     11        * http/tests/plugins/visible_plugins.html:
     12        * http/tests/plugins/visible_plugins-expected.txt:
     13        * platform/mac-wk2/http/tests/plugins/visible_plugins-expected.txt: Removed.
     14
    1152016-02-03  Ryan Haddad  <ryanhaddad@apple.com>
    216
  • trunk/LayoutTests/http/tests/plugins/visible_plugins-expected.txt

    r195950 r196084  
    11Check we only display the valid set of "public" plugins.
    22
    3 None
     3PASS: No unexpected plugins were found.
  • trunk/LayoutTests/http/tests/plugins/visible_plugins.html

    r195950 r196084  
    1010    }
    1111
    12     var pluginList = "";
     12    var unexpectedPlugins = [];
    1313    Array.prototype.forEach.call(navigator.plugins, function(plugin) {
    14         if (pluginList.length)
    15             pluginList = pluginList + "\n";
    16         pluginList = pluginList + plugin.name;
     14        if (plugin.name.match(/Shockwave/i))
     15            return;
     16        if (plugin.name.match(/QuickTime/i))
     17            return;
     18        if (plugin.name.match(/Java/i))
     19            return;
     20        if (plugin.name.match(/WebKit built-in PDF/i))
     21            return;
     22
     23        unexpectedPlugins.push(plugin.name);
    1724    });
    1825
    19     if (pluginList.length)
    20         document.getElementById("result").innerText = pluginList;
     26    if (unexpectedPlugins.length)
     27        document.getElementById("result").innerText = "FAIL: Unexpected plugins: " + unexpectedPlugins.toString();
     28    else
     29        document.getElementById("result").innerText = "PASS: No unexpected plugins were found."
    2130    if (window.testRunner)
    2231        testRunner.notifyDone();
     
    2837    Check we only display the valid set of "public" plugins.
    2938</p>
    30 <div id="result">None</div>
     39<div id="result">TEST DID NOT RUN</div>
    3140</body>
    3241</html>
Note: See TracChangeset for help on using the changeset viewer.