Tests that console can filter messages by source.
Running: dumpLevels
All levels
{
error : true
info : true
verbose : true
warning : true
}
Default levels
{
error : true
info : true
verbose : false
warning : true
}
Running: beforeFilter
beforeFilter
Level menu: Default levels
>console-filter-level-test.js:16 sample info
>console-filter-level-test.js:17 sample log
>console-filter-level-test.js:18 sample warning
(anonymous) @ console-filter-level-test.js:18
>console-filter-level-test.js:20 sample error
(anonymous) @ console-filter-level-test.js:20
>console-filter-level-test.js:22 abc info
>console-filter-level-test.js:23 def info
>console-filter-level-test.js:25 abc warn
(anonymous) @ console-filter-level-test.js:25
>console-filter-level-test.js:26 def warn
(anonymous) @ console-filter-level-test.js:26
>'Should be always visible'
>'Should be always visible'
Running: allLevels
Level menu: All levels
>console-filter-level-test.js:16 sample info
>console-filter-level-test.js:17 sample log
>console-filter-level-test.js:18 sample warning
(anonymous) @ console-filter-level-test.js:18
>console-filter-level-test.js:19 sample debug
>console-filter-level-test.js:20 sample error
(anonymous) @ console-filter-level-test.js:20
>console-filter-level-test.js:22 abc info
>console-filter-level-test.js:23 def info
>console-filter-level-test.js:25 abc warn
(anonymous) @ console-filter-level-test.js:25
>console-filter-level-test.js:26 def warn
(anonymous) @ console-filter-level-test.js:26
>'Should be always visible'
>'Should be always visible'
Running: defaultLevels
Level menu: Default levels
>console-filter-level-test.js:16 sample info
>console-filter-level-test.js:17 sample log
>console-filter-level-test.js:18 sample warning
(anonymous) @ console-filter-level-test.js:18
>console-filter-level-test.js:20 sample error
(anonymous) @ console-filter-level-test.js:20
>console-filter-level-test.js:22 abc info
>console-filter-level-test.js:23 def info
>console-filter-level-test.js:25 abc warn
(anonymous) @ console-filter-level-test.js:25
>console-filter-level-test.js:26 def warn
(anonymous) @ console-filter-level-test.js:26
>'Should be always visible'
>'Should be always visible'
Running: verbose
Level menu: Verbose only
>console-filter-level-test.js:19 sample debug
>'Should be always visible'
>'Should be always visible'
Running: info
Level menu: Info only
>console-filter-level-test.js:16 sample info
>console-filter-level-test.js:17 sample log
>console-filter-level-test.js:22 abc info
>console-filter-level-test.js:23 def info
>'Should be always visible'
>'Should be always visible'
Running: warningsAndErrors
Level menu: Custom levels
>console-filter-level-test.js:18 sample warning
(anonymous) @ console-filter-level-test.js:18
>console-filter-level-test.js:20 sample error
(anonymous) @ console-filter-level-test.js:20
>console-filter-level-test.js:25 abc warn
(anonymous) @ console-filter-level-test.js:25
>console-filter-level-test.js:26 def warn
(anonymous) @ console-filter-level-test.js:26
>'Should be always visible'
>'Should be always visible'
Running: abcMessagePlain
Level menu: Verbose only
>'Should be always visible'
>'Should be always visible'
Running: abcMessageRegex
Level menu: Verbose only
>'Should be always visible'
>'Should be always visible'
Running: abcMessageRegexWarning
Level menu: Warnings only
>console-filter-level-test.js:25 abc warn
(anonymous) @ console-filter-level-test.js:25
>'Should be always visible'
>'Should be always visible'