diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2020-03-24 19:08:35 -0400 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-03-25 12:28:37 +0100 |
commit | 2d36b936ba01463e4dd88a104dac7d3113d232d0 (patch) | |
tree | 5bfecc00482a54715c53d067c57b3e40b35a056a /cypress_test/integration_tests/mobile/writer/focus_spec.js | |
parent | cypress: check keyboard visibility when editing shapes in writer (diff) | |
download | online-2d36b936ba01463e4dd88a104dac7d3113d232d0.tar.gz online-2d36b936ba01463e4dd88a104dac7d3113d232d0.zip |
leaflet: shouldAcceptInput -> canAcceptKeyboardInput
Clearer name to differentiate intent from expectation.
Change-Id: I74cc4c3bca11782bdd9cf72d6af4534357cefa64
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91016
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'cypress_test/integration_tests/mobile/writer/focus_spec.js')
-rw-r--r-- | cypress_test/integration_tests/mobile/writer/focus_spec.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cypress_test/integration_tests/mobile/writer/focus_spec.js b/cypress_test/integration_tests/mobile/writer/focus_spec.js index ed6490846d..4df2242af9 100644 --- a/cypress_test/integration_tests/mobile/writer/focus_spec.js +++ b/cypress_test/integration_tests/mobile/writer/focus_spec.js @@ -200,7 +200,7 @@ describe('Focus tests', function() { // .should('be.eq', 'clipboard'); cy.window().then(win => { - expect(win.shouldAcceptInput(), 'Should accept input').to.equal(true); + expect(win.canAcceptKeyboardInput(), 'Should accept input').to.equal(true); }); }); @@ -291,7 +291,7 @@ describe('Focus tests', function() { .should('not.have.class', 'checked'); cy.window().then(win => { - win.lastInputState = win.shouldAcceptInput(); + win.lastInputState = win.canAcceptKeyboardInput(); }); cy.get('#tb_editbar_item_bold') @@ -301,7 +301,7 @@ describe('Focus tests', function() { .should('have.class', 'checked'); cy.window().then(win => { - var acceptInput = win.shouldAcceptInput(); + var acceptInput = win.canAcceptKeyboardInput(); expect(acceptInput, 'Should accept input').to.equal(win.lastInputState); }); }); @@ -320,7 +320,7 @@ describe('Focus tests', function() { .should('not.have.class', 'checked'); cy.window().then(win => { - win.lastInputState = win.shouldAcceptInput(); + win.lastInputState = win.canAcceptKeyboardInput(); }); cy.get('#tb_editbar_item_italic') @@ -330,7 +330,7 @@ describe('Focus tests', function() { .should('have.class', 'checked'); cy.window().then(win => { - var acceptInput = win.shouldAcceptInput(); + var acceptInput = win.canAcceptKeyboardInput(); expect(acceptInput, 'Should accept input').to.equal(win.lastInputState); }); }); @@ -349,7 +349,7 @@ describe('Focus tests', function() { .should('not.have.class', 'checked'); cy.window().then(win => { - win.lastInputState = win.shouldAcceptInput(); + win.lastInputState = win.canAcceptKeyboardInput(); }); cy.get('#tb_editbar_item_underline') @@ -359,7 +359,7 @@ describe('Focus tests', function() { .should('have.class', 'checked'); cy.window().then(win => { - var acceptInput = win.shouldAcceptInput(); + var acceptInput = win.canAcceptKeyboardInput(); expect(acceptInput, 'Should accept input').to.equal(win.lastInputState); }); }); |