mirror of
https://github.com/adobe/brackets.git
synced 2024-11-20 18:02:54 +01:00
Added a couple more checks in unit tests for extract scrollbars
This commit is contained in:
parent
aa13d464f3
commit
c8576b15ea
@ -1,7 +1,10 @@
|
||||
::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:window-inactive{
|
||||
}::-webkit-scrollbar-thumb:window-inactive{
|
||||
background: white;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb
|
||||
{
|
||||
background: white;
|
||||
}
|
||||
|
@ -76,8 +76,8 @@ define(function (require, exports, module) {
|
||||
var themeFile = FileSystem.getFileForPath(testFilePath + "/simple-scrollbars.css");
|
||||
var promise = FileUtils.readAsText(themeFile).done(function(content) {
|
||||
var themeScrollbars = ThemeManager._extractScrollbars(content);
|
||||
expect(themeScrollbars.scrollbar.length).toEqual(2);
|
||||
expect(superTrim(themeScrollbars.scrollbar.join(""))).toEqual("::-webkit-scrollbar{width:12px;}::-webkit-scrollbar-thumb:window-inactive{background:white;}");
|
||||
expect(themeScrollbars.scrollbar.length).toEqual(3);
|
||||
expect(superTrim(themeScrollbars.scrollbar.join(""))).toEqual("::-webkit-scrollbar{width:12px;}::-webkit-scrollbar-thumb:window-inactive{background:white;}::-webkit-scrollbar-thumb{background:white;}");
|
||||
expect(superTrim(themeScrollbars.content)).toEqual("");
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user