<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>67155</bug_id>
          
          <creation_ts>2011-08-29 14:31:48 -0700</creation_ts>
          <short_desc>[Qt] QDesktopWebView url property test missing</short_desc>
          <delta_ts>2011-08-29 16:20:01 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Gopal Raghavan">gopal.1.raghavan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>menard</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>458456</commentid>
    <comment_count>0</comment_count>
    <who name="Gopal Raghavan">gopal.1.raghavan</who>
    <bug_when>2011-08-29 14:31:48 -0700</bug_when>
    <thetext>Need test for url property in QDesktopWebView</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458462</commentid>
    <comment_count>1</comment_count>
      <attachid>105523</attachid>
    <who name="Gopal Raghavan">gopal.1.raghavan</who>
    <bug_when>2011-08-29 14:37:39 -0700</bug_when>
    <thetext>Created attachment 105523
url property test for DesktopWebView

Here is the test results:
********* Start testing of tst_CommonViewTests *********
Config: Using QTest library 5.0.0, Qt 5.0.0
PASS   : tst_CommonViewTests::initTestCase()
PASS   : tst_CommonViewTests::baseUrl()
PASS   : tst_CommonViewTests::loadEmptyUrl()
QWARN  : tst_CommonViewTests::loadEmptyPageViewVisible() QSocketNotifier: socket notifiers cannot be enabled from another thread
QWARN  : tst_CommonViewTests::loadEmptyPageViewVisible() QSocketNotifier: socket notifiers cannot be enabled from another thread
QWARN  : tst_CommonViewTests::loadEmptyPageViewVisible() QObject::startTimer: timers cannot be started from another thread
PASS   : tst_CommonViewTests::loadEmptyPageViewVisible()
QWARN  : tst_CommonViewTests::loadEmptyPageViewHidden() QSocketNotifier: socket notifiers cannot be enabled from another thread
PASS   : tst_CommonViewTests::loadEmptyPageViewHidden()
QWARN  : tst_CommonViewTests::loadNonexistentFileUrl() QSocketNotifier: socket notifiers cannot be enabled from another thread
PASS   : tst_CommonViewTests::loadNonexistentFileUrl()
QWARN  : tst_CommonViewTests::backAndForward() QSocketNotifier: socket notifiers cannot be enabled from another thread
PASS   : tst_CommonViewTests::backAndForward()
QWARN  : tst_CommonViewTests::reload() QSocketNotifier: socket notifiers cannot be enabled from another thread
PASS   : tst_CommonViewTests::reload()
PASS   : tst_CommonViewTests::stop()
PASS   : tst_CommonViewTests::loadProgress()
QWARN  : tst_CommonViewTests::show() QSocketNotifier: socket notifiers cannot be enabled from another thread
QWARN  : tst_CommonViewTests::show() QObject::startTimer: timers cannot be started from another thread
PASS   : tst_CommonViewTests::show()
PASS   : tst_CommonViewTests::cleanupTestCase()
Totals: 12 passed, 0 failed, 0 skipped
********* Finished testing of tst_CommonViewTests *********

********* Start testing of tst_QTouchWebView *********
Config: Using QTest library 5.0.0, Qt 5.0.0
PASS   : tst_QTouchWebView::initTestCase()
PASS   : tst_QTouchWebView::accessPage()
PASS   : tst_QTouchWebView::navigationActionsStatusAtStartup()
PASS   : tst_QTouchWebView::cleanupTestCase()
Totals: 4 passed, 0 failed, 0 skipped
********* Finished testing of tst_QTouchWebView *********

********* Start testing of tst_QDesktopWebView *********
Config: Using QTest library 5.0.0, Qt 5.0.0
PASS   : tst_QDesktopWebView::initTestCase()
PASS   : tst_QDesktopWebView::navigationActionsStatusAtStartup()
QWARN  : tst_QDesktopWebView::stopActionEnabledAfterLoadStarted() QSocketNotifier: socket notifiers cannot be enabled from another thread
PASS   : tst_QDesktopWebView::stopActionEnabledAfterLoadStarted()
PASS   : tst_QDesktopWebView::cleanupTestCase()
Totals: 4 passed, 0 failed, 0 skipped
********* Finished testing of tst_QDesktopWebView *********

********* Start testing of qmltests *********
Config: Using QTest library 5.0.0, Qt 5.0.0
PASS   : DesktopWebViewNavigationPolicyForUrl::initTestCase()
QWARN  : DesktopWebViewNavigationPolicyForUrl::test_ignorePolicy() QObject::startTimer: timers cannot be started from another thread
PASS   : DesktopWebViewNavigationPolicyForUrl::test_ignorePolicy()
PASS   : DesktopWebViewNavigationPolicyForUrl::test_usePolicy()
PASS   : DesktopWebViewNavigationPolicyForUrl::cleanupTestCase()
PASS   : DesktopWebViewProperties::initTestCase()
PASS   : DesktopWebViewProperties::test_title()
PASS   : DesktopWebViewProperties::test_url()
PASS   : DesktopWebViewProperties::cleanupTestCase()
PASS   : TouchWebViewProperties::initTestCase()
PASS   : TouchWebViewProperties::test_title()
PASS   : TouchWebViewProperties::cleanupTestCase()
Totals: 11 passed, 0 failed, 0 skipped
********* Finished testing of qmltests *********


**********************************************************************
**              TOTALS: 31 passed, 0 failed, 0 skipped              **
**********************************************************************</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458468</commentid>
    <comment_count>2</comment_count>
      <attachid>105523</attachid>
    <who name="Noam Rosenthal">noam</who>
    <bug_when>2011-08-29 14:52:18 -0700</bug_when>
    <thetext>Comment on attachment 105523
url property test for DesktopWebView

View in context: https://bugs.webkit.org/attachment.cgi?id=105523&amp;action=review

&gt; Source/WebKit2/ChangeLog:8
&gt; +        Added qml test case to check url property

Period at end of sentence please.

&gt; Source/WebKit2/UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_properties.qml:30
&gt; +            var tstUrl = Qt.resolvedUrl(&quot;../common/test1.html&quot;)
&gt; +            webView.load(tstUrl)
&gt; +            spy.wait()
&gt; +            compare(webView.url, tstUrl)
&gt; +        }

This doesn&apos;t test anything. Please test that the page actually loaded, e.g. by testing that the title has changed (like the test above it).
Also, use testUrl instead of tstUrl. Abbvs don&apos;t smplfy reading the code :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458471</commentid>
    <comment_count>3</comment_count>
    <who name="Gopal Raghavan">gopal.1.raghavan</who>
    <bug_when>2011-08-29 14:56:56 -0700</bug_when>
    <thetext>webView.url is a read only property. All it does is to check and see if the url is set properly.
This is not a title test. That is already take care of in previous test case.

I can take care of tstUrl. 
Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458475</commentid>
    <comment_count>4</comment_count>
      <attachid>105526</attachid>
    <who name="Gopal Raghavan">gopal.1.raghavan</who>
    <bug_when>2011-08-29 15:03:40 -0700</bug_when>
    <thetext>Created attachment 105526
updated desktopwebview patch

Taken care of reviewer comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458488</commentid>
    <comment_count>5</comment_count>
    <who name="Alexis Menard (darktears)">menard</who>
    <bug_when>2011-08-29 15:32:05 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; webView.url is a read only property. All it does is to check and see if the url is set properly.
&gt; This is not a title test. That is already take care of in previous test case.
&gt; 
&gt; I can take care of tstUrl. 
&gt; Thanks

What Noam said is that load is async therefore in theory testing the property right away is not valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458490</commentid>
    <comment_count>6</comment_count>
    <who name="Gopal Raghavan">gopal.1.raghavan</who>
    <bug_when>2011-08-29 15:34:40 -0700</bug_when>
    <thetext>That&apos;s why we wait on spy for signal &quot;loadSucceeded&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458497</commentid>
    <comment_count>7</comment_count>
      <attachid>105526</attachid>
    <who name="Alexis Menard (darktears)">menard</who>
    <bug_when>2011-08-29 15:40:20 -0700</bug_when>
    <thetext>Comment on attachment 105526
updated desktopwebview patch

Ah yes perfect then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458531</commentid>
    <comment_count>8</comment_count>
      <attachid>105526</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-29 16:19:56 -0700</bug_when>
    <thetext>Comment on attachment 105526
updated desktopwebview patch

Clearing flags on attachment: 105526

Committed r94027: &lt;http://trac.webkit.org/changeset/94027&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>458532</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-29 16:20:01 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>105523</attachid>
            <date>2011-08-29 14:37:39 -0700</date>
            <delta_ts>2011-08-29 15:03:40 -0700</delta_ts>
            <desc>url property test for DesktopWebView</desc>
            <filename>67155.patch</filename>
            <type>text/plain</type>
            <size>1413</size>
            <attacher name="Gopal Raghavan">gopal.1.raghavan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDk0MDE1KQorKysgU291cmNlL1dlYktpdDIvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTEtMDgtMjkgIEdvcGFsIFJh
Z2hhdmFuICA8Z29wYWwuMS5yYWdoYXZhbkBub2tpYS5jb20+CisKKyAgICAgICAgW1F0XSBRRGVz
a3RvcFdlYlZpZXcgdXJsIHByb3BlcnR5IH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FyZSh3ZWJWaWV3LnRpdGxlLCAiVGVzdCBw
YWdlIDEiKQogICAgICAgICB9CisKKyAgICAgICAgZnVuY3Rpb24gdGVzdF91cmwoKSB7CisgICAg
ICAgICAgICBjb21wYXJlKHNweS5jb3VudCwgMSkKKyAgICAgICAgICAgIHZhciB0c3RVcmwgPSBR
dC5yZXNvbHZlZFVybCgiLi4vY29tbW9uL3Rlc3QxLmh0bWwiKQorICAgICAgICAgICAgd2ViVmll
dy5sb2FkKHRzdFVybCkKKyAgICAgICAgICAgIHNweS53YWl0KCkKKyAgICAgICAgICAgIGNvbXBh
cmUod2ViVmlldy51cmwsIHRzdFVybCkKKyAgICAgICAgfQogICAgIH0KIH0K
</data>
<flag name="review"
          id="101715"
          type_id="1"
          status="-"
          setter="noam"
    />
    <flag name="commit-queue"
          id="101716"
          type_id="3"
          status="-"
          setter="noam"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>105526</attachid>
            <date>2011-08-29 15:03:40 -0700</date>
            <delta_ts>2011-08-29 16:19:56 -0700</delta_ts>
            <desc>updated desktopwebview patch</desc>
            <filename>67155a.patch</filename>
            <type>text/plain</type>
            <size>1502</size>
            <attacher name="Gopal Raghavan">gopal.1.raghavan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDk0MDE1KQorKysgU291cmNlL1dlYktpdDIvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTEtMDgtMjkgIEdvcGFsIFJh
Z2hhdmFuICA8Z29wYWwuMS5yYWdoYXZhbkBub2tpYS5jb20+CisKKyAgICAgICAgW1F0XSBRRGVz
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Fdl
YlZpZXcvdHN0X3Byb3BlcnRpZXMucW1sCSh3b3JraW5nIGNvcHkpCkBAIC0yMCw1ICsyMCwxMyBA
QCBEZXNrdG9wV2ViVmlldyB7CiAgICAgICAgICAgICBzcHkud2FpdCgpCiAgICAgICAgICAgICBj
b21wYXJlKHdlYlZpZXcudGl0bGUsICJUZXN0IHBhZ2UgMSIpCiAgICAgICAgIH0KKworICAgICAg
ICBmdW5jdGlvbiB0ZXN0X3VybCgpIHsKKyAgICAgICAgICAgIGNvbXBhcmUoc3B5LmNvdW50LCAx
KQorICAgICAgICAgICAgdmFyIHRlc3RVcmwgPSBRdC5yZXNvbHZlZFVybCgiLi4vY29tbW9uL3Rl
c3QxLmh0bWwiKQorICAgICAgICAgICAgd2ViVmlldy5sb2FkKHRlc3RVcmwpCisgICAgICAgICAg
ICBzcHkud2FpdCgpCisgICAgICAgICAgICBjb21wYXJlKHdlYlZpZXcudXJsLCB0ZXN0VXJsKQor
ICAgICAgICB9CiAgICAgfQogfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>