Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
add test for #4863
Browse files Browse the repository at this point in the history
Auditors: @bbondy

Test Plan: n/a
  • Loading branch information
diracdeltas committed Oct 17, 2016
1 parent e895975 commit 0f4abd7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/components/navigationBarTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,11 +678,18 @@ describe('navigationBar', function () {
it('urlbar shows webview url when focused', function * () {
var page1 = this.page1
yield blur(this.app.client)
yield this.app.client.waitUntil(function () {
return this.isExisting(urlInput).then((exists) => exists === false)
})
yield this.app.client
.ipcSend('shortcut-focus-url')
yield this.app.client.waitUntil(function () {
return this.getValue(urlInput).then((val) => val === page1)
})
yield this.app.client.keys('abc')
yield this.app.client.waitUntil(function () {
return this.getValue(urlInput).then((val) => val === 'abc')
})
})
})

Expand Down

1 comment on commit 0f4abd7

@bbondy
Copy link
Member

@bbondy bbondy commented on 0f4abd7 Oct 17, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++ thanks!

Please sign in to comment.