⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 94027 in webkit


Ignore:
Timestamp:
Aug 29, 2011, 4:19:43 PM (15 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt] QDesktopWebView url property test missing
https://bugs.webkit.org/show_bug.cgi?id=67155

Patch by Gopal Raghavan <gopal.1.raghavan@nokia.com> on 2011-08-29
Reviewed by Noam Rosenthal.

Added qml test case to check url property. Since url is a readonly property, we make sure that it's set after load() is called.

  • UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_properties.qml:
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r94007 r94027  
     12011-08-29  Gopal Raghavan  <gopal.1.raghavan@nokia.com>
     2
     3        [Qt] QDesktopWebView url property test missing
     4        https://bugs.webkit.org/show_bug.cgi?id=67155
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        Added qml test case to check url property. Since url is a readonly property, we make sure that it's set after load() is called.
     9
     10        * UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_properties.qml:
     11
    1122011-08-29  Sheriff Bot  <webkit.review.bot@gmail.com>
    213
  • trunk/Source/WebKit2/UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_properties.qml

    r92277 r94027  
    2121            compare(webView.title, "Test page 1")
    2222        }
     23
     24        function test_url() {
     25            compare(spy.count, 1)
     26            var testUrl = Qt.resolvedUrl("../common/test1.html")
     27            webView.load(testUrl)
     28            spy.wait()
     29            compare(webView.url, testUrl)
     30        }
    2331    }
    2432}
Note: See TracChangeset for help on using the changeset viewer.