1
0
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:
Miguel Castillo 2014-07-09 12:34:54 -04:00
parent aa13d464f3
commit c8576b15ea
2 changed files with 8 additions and 5 deletions

View File

@ -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;
}

View File

@ -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("");
});