Add spec for read/write find text
This commit is contained in:
Родитель
1718697ef0
Коммит
1c3b5835f4
|
@ -152,7 +152,7 @@ void Clipboard::WriteImage(const gfx::Image& image, mate::Arguments* args) {
|
|||
|
||||
#if !defined(OS_MACOSX)
|
||||
void Clipboard::WriteFindText(const base::string16& text) {}
|
||||
base::string16 Clipboard::ReadFindText() { return ""; }
|
||||
base::string16 Clipboard::ReadFindText() { return base::string16(); }
|
||||
#endif
|
||||
|
||||
void Clipboard::Clear(mate::Arguments* args) {
|
||||
|
|
|
@ -84,4 +84,13 @@ describe('clipboard module', function () {
|
|||
}
|
||||
})
|
||||
})
|
||||
|
||||
describe('clipboard.read/writeFindText(text)', function () {
|
||||
it('reads and write text to the find pasteboard', function () {
|
||||
if (process.platform !== 'darwin') return this.skip()
|
||||
|
||||
clipboard.writeFindText('find this')
|
||||
assert.equal(clipboard.readFindText(), 'find this')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче