<?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>74208</bug_id>
          
          <creation_ts>2011-12-09 13:20:28 -0800</creation_ts>
          <short_desc>Web Inspector: [Chromium] add support to inspector test suite to fetch test execution results from console</short_desc>
          <delta_ts>2011-12-15 05:26:39 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector (Deprecated)</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>1</everconfirmed>
          <reporter name="Andrey Kosyakov">caseq</reporter>
          <assigned_to name="Andrey Kosyakov">caseq</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bweinstein</cc>
    
    <cc>keishi</cc>
    
    <cc>loislo</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>518444</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Kosyakov">caseq</who>
    <bug_when>2011-12-09 13:20:28 -0800</bug_when>
    <thetext>Extension tests run in a context of their own, so to interface them with inspector test suite, we just log to console and pick test execution results from console in the front-end context.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518446</commentid>
    <comment_count>1</comment_count>
      <attachid>118622</attachid>
    <who name="Andrey Kosyakov">caseq</who>
    <bug_when>2011-12-09 13:22:37 -0800</bug_when>
    <thetext>Created attachment 118622
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518899</commentid>
    <comment_count>2</comment_count>
      <attachid>118622</attachid>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-12-11 09:39:20 -0800</bug_when>
    <thetext>Comment on attachment 118622
Patch

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

&gt; Source/WebKit/chromium/src/js/Tests.js:561
&gt; +TestSuite.prototype.testWaitForResultsInConsole = function()

Could you elaborate on how you intend to use this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518903</commentid>
    <comment_count>3</comment_count>
      <attachid>118622</attachid>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-12-11 09:44:36 -0800</bug_when>
    <thetext>Comment on attachment 118622
Patch

Clearing the r? while waiting for the clarification to remote it from the dashboard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>518906</commentid>
    <comment_count>4</comment_count>
    <who name="Andrey Kosyakov">caseq</who>
    <bug_when>2011-12-11 10:10:11 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 118622 [details])
&gt; Clearing the r? while waiting for the clarification to remote it from the dashboard.

See http://codereview.chromium.org/8899008/ for context. Basically, we use console as a poor man&apos;s IPC here: the test actually runs asynchronously in another context and reports the results to the inspector console.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>519175</commentid>
    <comment_count>5</comment_count>
      <attachid>118622</attachid>
    <who name="Yury Semikhatsky">yurys</who>
    <bug_when>2011-12-12 07:14:29 -0800</bug_when>
    <thetext>Comment on attachment 118622
Patch

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

&gt;&gt; Source/WebKit/chromium/src/js/Tests.js:561
&gt;&gt; +TestSuite.prototype.testWaitForResultsInConsole = function()
&gt; 
&gt; Could you elaborate on how you intend to use this?

Could you pick a more specific name for the test method?

&gt; Source/WebKit/chromium/src/js/Tests.js:568
&gt; +        else if (/^FAIL/.test(text))

If there are several failures you may want to print all of them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>519179</commentid>
    <comment_count>6</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2011-12-12 07:19:08 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (From update of attachment 118622 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=118622&amp;action=review
&gt; 
&gt; &gt;&gt; Source/WebKit/chromium/src/js/Tests.js:561
&gt; &gt;&gt; +TestSuite.prototype.testWaitForResultsInConsole = function()
&gt; &gt; 
&gt; &gt; Could you elaborate on how you intend to use this?
&gt; 
&gt; Could you pick a more specific name for the test method?

Sounds like this is not a method, but rather is a part of the harness. It would be great to get a bigger picture in the ChangeLog...

&gt; 
&gt; &gt; Source/WebKit/chromium/src/js/Tests.js:568
&gt; &gt; +        else if (/^FAIL/.test(text))
&gt; 
&gt; If there are several failures you may want to print all of them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>521844</commentid>
    <comment_count>7</comment_count>
    <who name="Andrey Kosyakov">caseq</who>
    <bug_when>2011-12-15 05:25:28 -0800</bug_when>
    <thetext>renamed to TestSuite.prototype.waitForTestResultsInConsole, added a ChangeLog with a reference to usage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>521845</commentid>
    <comment_count>8</comment_count>
    <who name="Andrey Kosyakov">caseq</who>
    <bug_when>2011-12-15 05:26:39 -0800</bug_when>
    <thetext>Committed r102928: &lt;http://trac.webkit.org/changeset/102928&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>118622</attachid>
            <date>2011-12-09 13:22:37 -0800</date>
            <delta_ts>2011-12-12 07:14:29 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-74208-20111209132236.patch</filename>
            <type>text/plain</type>
            <size>2080</size>
            <attacher name="Andrey Kosyakov">caseq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FJTCwgc28gd2FpdCBm
b3IgbW9yZSBtZXNzYWdlcy4KKyAgICBmdW5jdGlvbiBvbkNvbnNvbGVNZXNzYWdlKGV2ZW50KQor
ICAgIHsKKyAgICAgICAgdmFyIHRleHQgPSBldmVudC5kYXRhLnRleHQ7CisgICAgICAgIGlmICh0
ZXh0ID09PSAiUEFTUyIpCisgICAgICAgICAgICB0aGlzLnJlbGVhc2VDb250cm9sKCk7CisgICAg
ICAgIGVsc2UgaWYgKC9eRkFJTC8udGVzdCh0ZXh0KSkKKyAgICAgICAgICAgIHRoaXMuZmFpbCh0
ZXh0KTsKKyAgICB9CisKKyAgICBXZWJJbnNwZWN0b3IuY29uc29sZS5hZGRFdmVudExpc3RlbmVy
KFdlYkluc3BlY3Rvci5Db25zb2xlTW9kZWwuRXZlbnRzLk1lc3NhZ2VBZGRlZCwgb25Db25zb2xl
TWVzc2FnZSwgdGhpcyk7CisgICAgdGhpcy50YWtlQ29udHJvbCgpOworfTsKKworCiAvKioKICAq
IFNlcmlhbGl6ZXMgb3B0aW9ucyBjb2xsZWN0aW9uIHRvIHN0cmluZy4KICAqIEBwYXJhbSB7SFRN
TE9wdGlvbnNDb2xsZWN0aW9ufSBvcHRpb25zCg==
</data>
<flag name="review"
          id="118538"
          type_id="1"
          status="+"
          setter="yurys"
    />
          </attachment>
      

    </bug>

</bugzilla>