<?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>79096</bug_id>
          
          <creation_ts>2012-02-21 04:13:57 -0800</creation_ts>
          <short_desc>[GTK] fast/mediastream/peerconnection-argument-types.html fails</short_desc>
          <delta_ts>2012-02-22 01:02:52 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Philippe Normand">pnormand</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>yanbin.zhang</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>560802</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-02-21 04:13:57 -0800</bug_when>
    <thetext>Since checkin in r108299. Consistently. Diff:

--- /home/slave/webkitgtk/gtk-linux-64-release/build/layout-test-results/fast/mediastream/peerconnection-argument-types-expected.txt 
+++ /home/slave/webkitgtk/gtk-linux-64-release/build/layout-test-results/fast/mediastream/peerconnection-argument-types-actual.txt 
@@ -3,7 +3,7 @@
 On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
 
 
-PASS typeof webkitPeerConnection== &apos;function&apos; is true
+FAIL typeof webkitPeerConnection== &apos;function&apos; should be true. Was false.
 PASS new webkitPeerConnection() threw exception TypeError: Not enough arguments.
 PASS new webkitPeerConnection(&quot;STUN 203.0.113.2:2478&quot;) threw exception TypeError: Not enough arguments.
 PASS new webkitPeerConnection(&quot;STUN relay.example.net:3478&quot;) threw exception TypeError: Not enough arguments.
@@ -23,8 +23,8 @@
 PASS new webkitPeerConnection(&quot;STUNS NONE&quot;) threw exception TypeError: Not enough arguments.
 PASS new webkitPeerConnection(&quot;undefined&quot;) threw exception TypeError: Not enough arguments.
 PASS new webkitPeerConnection(&quot;null&quot;) threw exception TypeError: Not enough arguments.
-PASS new webkitPeerConnection({})) threw exception SyntaxError: Unexpected token ).
-PASS new webkitPeerConnection(42)) threw exception SyntaxError: Unexpected token ).
+FAIL new webkitPeerConnection({})) should throw SyntaxError: Unexpected token ). Threw exception SyntaxError: Unexpected token &apos;)&apos;.
+FAIL new webkitPeerConnection(42)) should throw SyntaxError: Unexpected token ). Threw exception SyntaxError: Unexpected token &apos;)&apos;.
 PASS new webkitPeerConnection(Infinity) threw exception TypeError: Not enough arguments.
 PASS new webkitPeerConnection(-Infinity) threw exception TypeError: Not enough arguments.
 PASS new webkitPeerConnection(emptyFunction) threw exception TypeError: Not enough arguments.
@@ -45,7 +45,7 @@
 PASS new webkitPeerConnection(&quot;STUN NONE&quot;,emptyFunction) did not throw exception.
 PASS new webkitPeerConnection(&quot;STUNS NONE&quot;,emptyFunction) did not throw exception.
 PASS new webkitPeerConnection(&quot;TURN NONE&quot;,undefined) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
-PASS new webkitPeerConnection(&quot;TURNS NONE&quot;,{}) did not throw exception.
+FAIL new webkitPeerConnection(&quot;TURNS NONE&quot;,{}) should not throw exception. Threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17
 PASS new webkitPeerConnection(&quot;STUN NONE&quot;,42) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
 PASS new webkitPeerConnection(&quot;STUNS NONE&quot;,Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
 PASS new webkitPeerConnection(&quot;STUNS NONE&quot;,-Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>560803</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-02-21 04:16:39 -0800</bug_when>
    <thetext>I haven&apos;t checked, but could the current test results be V8-specific?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>561510</commentid>
    <comment_count>2</comment_count>
    <who name="Yanbin">yanbin.zhang</who>
    <bug_when>2012-02-21 19:43:00 -0800</bug_when>
    <thetext>Those test cases are defined according to  http://www.w3.org/TR/webrtc/
For failed test cases:   new webkitPeerConnection(&quot;TURNS NONE&quot;,{})
I looked into this failure and think it is a bug for V8. Test case should fail explicitly by throwing an exception, otherwise the  code should not run correctly in any case. According to the WebIDL spec for “Callback types” (http://dev.w3.org/2006/webapi/WebIDL/#es-callback): If V is not a Function object, then throw a TypeError.

Hi, Adam, Do we need to report a bug entry for this issue for V8 and modify test case?  

And, I am very sorry to make a slight mistake for following two test cases definition:
PASS new webkitPeerConnection({})) threw exception SyntaxError: Unexpected token ).
PASS new webkitPeerConnection(42)) threw exception SyntaxError: Unexpected token ) 
It should be 
PASS new webkitPeerConnection({}) threw exception TypeError: Not enough arguments.
PASS new  webkitPeerConnection(42) threw exception TypeError: Not enough arguments.
I will upload a new patch to fix them.
While, the test result should not failed for original definition. I am not sure why those test cases  were failed.
Philippe, I guess you should look into why test case 
typeof webkitPeerConnection== &apos;function&apos; is failed.

Thanks
Yanbin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>561623</commentid>
    <comment_count>3</comment_count>
      <attachid>128131</attachid>
    <who name="Yanbin">yanbin.zhang</who>
    <bug_when>2012-02-21 22:29:45 -0800</bug_when>
    <thetext>Created attachment 128131
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>561632</commentid>
    <comment_count>4</comment_count>
      <attachid>128131</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-02-21 22:44:05 -0800</bug_when>
    <thetext>Comment on attachment 128131
patch

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

&gt; LayoutTests/ChangeLog:9
&gt; +        [GTK] fast/mediastream/peerconnection-argument-types.html fails
&gt; +        https://bugs.webkit.org/show_bug.cgi?id=79096
&gt; +
&gt; +        Reviewed by NOBODY (OOPS!).
&gt; +
&gt; +        * fast/mediastream/peerconnection-argument-types-expected.txt:
&gt; +        * fast/mediastream/script-tests/argument-types.js:

Can you explain why you&apos;re making this change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>561648</commentid>
    <comment_count>5</comment_count>
    <who name="Yanbin">yanbin.zhang</who>
    <bug_when>2012-02-21 23:05:00 -0800</bug_when>
    <thetext>There is a mistake for following two test cases definition:
PASS new webkitPeerConnection({})) threw exception SyntaxError: Unexpected token ).
PASS new webkitPeerConnection(42)) threw exception SyntaxError: Unexpected token ) 
It should be 
PASS new webkitPeerConnection({}) threw exception TypeError: Not enough arguments.
PASS new  webkitPeerConnection(42) threw exception TypeError: Not enough arguments.
This patch is to fix them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>561653</commentid>
    <comment_count>6</comment_count>
      <attachid>128131</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-02-21 23:09:58 -0800</bug_when>
    <thetext>Comment on attachment 128131
patch

Ok.  In general, it&apos;s a good idea to explain why you&apos;re making a change in the ChangeLog.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>561688</commentid>
    <comment_count>7</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-02-22 00:15:26 -0800</bug_when>
    <thetext>You didn&apos;t unskip the test either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>561720</commentid>
    <comment_count>8</comment_count>
      <attachid>128131</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-02-22 01:02:47 -0800</bug_when>
    <thetext>Comment on attachment 128131
patch

Clearing flags on attachment: 128131

Committed r108460: &lt;http://trac.webkit.org/changeset/108460&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>561721</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-02-22 01:02:52 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>128131</attachid>
            <date>2012-02-21 22:29:45 -0800</date>
            <delta_ts>2012-02-22 01:02:47 -0800</delta_ts>
            <desc>patch</desc>
            <filename>argument-types.patch</filename>
            <type>text/plain</type>
            <size>3188</size>
            <attacher name="Yanbin">yanbin.zhang</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDEwODQ0NikKKysrIExheW91dFRlc3RzL0NoYW5nZUxvZwkod29y
a2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBACisyMDEyLTAyLTIyICBZYW5iaW4gWmhhbmcgIDx5
YW5iaW4uemhhbmdAaW50ZWwuY29tPgorCisgICAgICAgIFtHVEtdIGZhc3QvbWVkaWFzdHJlYW0v
cGVlcmNvbm5lY3Rpb24tYXJndW1lbnQtdHlwZXMuaHRtbCBmYWlscworICAgICAgICBodHRwczov
L2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NzkwOTYKKworICAgICAgICBSZXZpZXdl
ZCBieSBOT0JPRFkgKE9PUFMhK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