text-wordbreak-test.js revision cc70141342b8690e43bef6d8cef0c38fcfba8227
ArrayAssert = Y.ArrayAssert,
name: 'Text.WordBreak',
// -- isWordBoundary() -----------------------------------------------------
'isWordBoundary() should not break between most letters': function () {
},
'isWordBoundary() should not break letters across certain punctuation': function () {
},
'isWordBoundary() should not break across sequences of digits or digits adjacent to letters': function () {
},
'isWordBoundary() should not break inside numeric sequences': function () {
},
'isWordBoundary() should ignore format and extend characters': function () {
},
'isWordBoundary() should not break inside CRLF': function () {
},
'isWordBoundary() should break before newlines': function () {
},
'isWordBoundary() should break after newlines': function () {
},
'isWordBoundary() should not break between Katakana characters': function () {
},
'isWordBoundary() should not break from extenders': function () {
},
'isWordBoundary() should break everywhere else': function () {
},
// -- getWords() -----------------------------------------------------------
'getWords() should split a string into words': function () {
// Also tests default exclusion of whitespace.
},
'getWords() should preserve case by default': function () {
},
'getWords() should support an ignoreCase option': function () {
},
'getWords() should exclude punctuation-only words by default': function () {
['Tut', 'tut', 'it', 'looks', 'like', 'rain'],
);
},
'getWords() should support an includePunctuation option': function () {
['Tut', '-', 'tut', ',', 'it', 'looks', 'like', 'rain', '.'],
);
},
'getWords() should support an includeWhitespace option': function () {
['foo', ' ', 'bar', ' ', 'baz'],
);
['foo', ' ', ' ', 'bar'],
);
['foo', '\t', 'bar'],
);
['foo', '\n', 'bar'],
);
},
// -- getUniqueWords() -----------------------------------------------------
'getUniqueWords() should only return unique words': function () {
}
}));