https://bugzilla.wikimedia.org/show_bug.cgi?id=57101

       Web browser: ---
            Bug ID: 57101
           Summary: browser tests must normalize font-familly
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: UniversalLanguageSelector
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

The .autonym class from resources/css/ext.uls.webfonts.css is:

 font-family: 'Autonym', sans-serif;

With single quotes and a space after the comma.


Firefox simply strip the whitespace and the following test works:

 on(PanelPage).autonym_element.style("font-family").should ==
"'Autonym',sans-serif"


On the other hand, phantomjs:
* strip the single quotes
* keep the white space

Hence it yield:

 Autonym, sans-serif


That makes the tests fails under phantomjs.


The style("font-family").should test should normalize the list of fonts or be
replaced by something that yield a list of fonts we can compare against. Or
maybe just assert it contains the Autonym string.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to