mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Add read/writeBookmark spec
This commit is contained in:
@@ -41,6 +41,16 @@ describe('clipboard module', function () {
|
||||
})
|
||||
})
|
||||
|
||||
describe('clipboard.readBookmark', function () {
|
||||
it('returns title and url', function () {
|
||||
clipboard.writeBookmark('a title', 'http://electron.atom.io')
|
||||
assert.deepEqual(clipboard.readBookmark(), {
|
||||
title: 'a title',
|
||||
url: 'https://electron.atom.io'
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('clipboard.write()', function () {
|
||||
it('returns data correctly', function () {
|
||||
var text = 'test'
|
||||
|
||||
Reference in New Issue
Block a user