Lines Matching refs:all

11     // -- all() ----------------------------------------------------------------
12 'all() should highlight all occurrences of needles in haystack': function () {
16 Hi.all('foo bar baz', ['oo', 'ba'])
22 Hi.all('foo bar baz', 'oo')
26 'all() should escape HTML characters': function () {
29 Hi.all('<foo> & <bar>', ['oo', 'ba'])
33 'all() should not highlight matches inside HTML entities': function () {
36 Hi.all('&', 'amp')
41 Hi.all('/m&m/', ['a', 'm', 'x'])
45 'all() should highlight complete HTML entities when part of a match': function () {
48 Hi.all('&', '&')
53 Hi.all('foo & bar', '&')
58 'all() should be case-insensitive by default': function () {
61 Hi.all('foo BAR baz', ['oo', 'ba'])
65 'all() should support a caseSensitive option': function () {
68 Hi.all('foo BAR baz', ['oo', 'ba'], {caseSensitive: true})
72 'all() should support a startsWith option': function () {
75 Hi.all('foo bar baz', ['fo', 'ba'], {startsWith: true})
79 'all() should support caseSensitive and startsWith together': function () {
82 Hi.all('FOO bar baz', ['fo', 'ba'], {caseSensitive: true, startsWith: true})
87 Hi.all('FOO bar baz', ['FO', 'ba'], {caseSensitive: true, startsWith: true})
92 'all() should not attempt to highlight empty needles': function () {
93 Assert.areSame('foo', Hi.all('foo', []));
94 Assert.areSame('foo', Hi.all('foo', ['']));
95 Assert.areSame('foo', Hi.all('foo', ''));
96 Assert.areSame("O&#x27;Neal", Hi.all("O'Neal", ''));
100 'allCase() should be a shortcut for case-sensitive all()': function () {
108 'allFold() should be an accent-folding variant of all()': function () {
141 'start() should be a shortcut for all() with startsWith option': function () {
149 'startCase() should be a shortcut for caseSensitive + startsWith all()': function () {