~uriboni/webbrowser-app/tab-context-menu

« back to all changes in this revision

Viewing changes to tests/unittests/qml/tst_AddressBar.qml

  • Committer: CI Train Bot
  • Author(s): Olivier Tilloy, Ugo Riboni
  • Date: 2015-08-11 11:18:30 UTC
  • mfrom: (985.6.52 uriboni-find-in-page)
  • Revision ID: ci-train-bot@canonical.com-20150811111830-o328zwwobjvumevy
Implement the "Find in Page" feature.
This bumps the runtime dependency on liboxideqt-qmlplugin to 1.8. Fixes: #1312260
Approved by: Riccardo Padovani

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
            editing: activeFocus
44
44
            canSimplifyText: true
 
45
 
 
46
            findController: QtObject {
 
47
                property int current
 
48
                property int count
 
49
            }
45
50
        }
46
51
 
47
52
        // only exists to steal focus from the address bar
367
372
            clickItem(addressBar)
368
373
            compare(addressBar.text, url)
369
374
        }
 
375
 
 
376
        function test_exitingFindInPageRestoresUrl() {
 
377
            addressBar.actualUrl = "http://example.org/"
 
378
            addressBar.findInPageMode = true
 
379
            verify(addressBar.activeFocus)
 
380
            compare(addressBar.text, "")
 
381
            typeString("hello")
 
382
            addressBar.findInPageMode = false
 
383
            compare(addressBar.text, "example.org")
 
384
        }
370
385
    }
371
386
}