Add spec for read/write find text
This commit is contained in:
parent
1718697ef0
commit
1c3b5835f4
2 changed files with 10 additions and 1 deletions
|
@ -152,7 +152,7 @@ void Clipboard::WriteImage(const gfx::Image& image, mate::Arguments* args) {
|
||||||
|
|
||||||
#if !defined(OS_MACOSX)
|
#if !defined(OS_MACOSX)
|
||||||
void Clipboard::WriteFindText(const base::string16& text) {}
|
void Clipboard::WriteFindText(const base::string16& text) {}
|
||||||
base::string16 Clipboard::ReadFindText() { return ""; }
|
base::string16 Clipboard::ReadFindText() { return base::string16(); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void Clipboard::Clear(mate::Arguments* args) {
|
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')
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue