<?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>126032</bug_id>
          
          <creation_ts>2013-12-19 17:03:45 -0800</creation_ts>
          <short_desc>Revise WebGL DataView test to match ECMAScript Draft Specification</short_desc>
          <delta_ts>2014-01-10 08:54:50 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>126475</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dino</cc>
    
    <cc>fpizlo</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>961644</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-12-19 17:03:45 -0800</bug_when>
    <thetext>Although the original WebGL specification declared the following syntax illegal:

    // Use try/catch instead of calling shouldThrow to avoid different exception message being reported from different platform.
    try {
        expr = DataView(new ArrayBuffer);
        TestEval(expr);
        testFailed(expr + &quot; does not throw exception&quot;);
    } catch (e) {
        testPassed(expr + &quot; threw exception&quot;);
    }

... this was later superseded by the language in the ECMAScript 6 Draft Specification, which allows DataView to be used as a function returning a constructed DataView object (see http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts for the current draft).

See http://people.mozilla.org/~jorendorff/es6-draft.html#sec-dataview-constructor for an HTML version of the document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>961645</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-12-19 17:06:14 -0800</bug_when>
    <thetext>Specific language:

&quot;The DataView constructor is the %DataView% intrinsic object and the initial value of the DataView property of the global object. When DataView is called as a function rather than as a constructor, it initialises its this value with the internal state necessary to support the DataView.prototype internal methods.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>961648</commentid>
    <comment_count>2</comment_count>
      <attachid>219708</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-12-19 17:11:06 -0800</bug_when>
    <thetext>Created attachment 219708
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>961653</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-12-19 17:18:34 -0800</bug_when>
    <thetext>&lt;rdar://problem/15201835&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964183</commentid>
    <comment_count>4</comment_count>
      <attachid>219708</attachid>
    <who name="Dean Jackson">dino</who>
    <bug_when>2014-01-03 11:03:48 -0800</bug_when>
    <thetext>Comment on attachment 219708
Patch

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

&gt; LayoutTests/ChangeLog:6
&gt; +        Revise WebGL DataView test to match ECMAScript Draft Specification
&gt; +        https://bugs.webkit.org/show_bug.cgi?id=126032
&gt; +
&gt; +        Reviewed by NOBODY (OOPS!).

Could you note here that we believe this is a bug in the test, and we&apos;ll try to get it fixed upstream?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964204</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-03 11:43:43 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 219708 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=219708&amp;action=review
&gt; 
&gt; &gt; LayoutTests/ChangeLog:6
&gt; &gt; +        Revise WebGL DataView test to match ECMAScript Draft Specification
&gt; &gt; +        https://bugs.webkit.org/show_bug.cgi?id=126032
&gt; &gt; +
&gt; &gt; +        Reviewed by NOBODY (OOPS!).
&gt; 
&gt; Could you note here that we believe this is a bug in the test, and we&apos;ll try to get it fixed upstream?

Done!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964205</commentid>
    <comment_count>6</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-03 11:43:51 -0800</bug_when>
    <thetext>Committed r161274: &lt;http://trac.webkit.org/changeset/161274&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964305</commentid>
    <comment_count>7</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2014-01-03 16:06:07 -0800</bug_when>
    <thetext>After more discussion with EMCA folk, it looks like this was an incorrect change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>964335</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-01-03 17:12:57 -0800</bug_when>
    <thetext>Re-opened since this is blocked by bug 126475</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>966383</commentid>
    <comment_count>9</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-01-10 08:54:50 -0800</bug_when>
    <thetext>After further review, this change is incorrect. We need to modify the behavior of DataView.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>219708</attachid>
            <date>2013-12-19 17:11:06 -0800</date>
            <delta_ts>2014-01-03 11:03:47 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-126032-20131219171105.patch</filename>
            <type>text/plain</type>
            <size>1552</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDE2MDg3OSkKKysrIExheW91dFRlc3RzL0NoYW5nZUxvZwkod29y
a2luZyBjb3B5KQpAQCAtMSwzICsxLDEzIEBACisyMDEzLTEyLTE5ICBCcmVudCBGdWxnaGFtICA8
YmZ1bGdoYW1AYXBwbGUuY29tPgorCisgICAgICAgIFJldmlzZSBXZWJHTCBEYXRhVmlldyB0ZXN0
IHRvIG1hdGNoIEVDTUFTY3JpcHQgRHJhZnQgU3BlY2lmaWNhdGlvbgorICAgICAgICBodHRwczov
L2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTI2MDMyCisKKyAgICAgICAgUmV2aWV3
ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgKiB3ZWJnbC8xLjAuMi9yZXNvdXJjZXMv
d2ViZ2xfdGVzdF9maWxlcy9jb25mb3JtYW5jZS90eXBlZGFycmF5cy9kYXRhLXZpZXctdGVzdC5o
dG1sOiBEbyBub3QKKyAgICAgICAgcHJvaGliaXQgdXNpbmcgRGF0YVZpZXcgYXMgYSBmdW5jdGlv
bi4KKwogMjAxMy0xMi0xOSAgT2xpdmVyIEh1bnQgIDxvbGl2ZXJAYXBwbGUuY29tPgogCiAgICAg
ICAgIERPTSBiaW5kaW5ncyBzaG91bGQgdXNlIHRoaXNWYWx1ZSBmb3IgYXR0cmlidXRlcwpJbmRl
eDogTGF5b3V0VGVzdHMvd2ViZ2wvMS4wLjIvcmVzb3VyY2VzL3dlYmdsX3Rlc3RfZmlsZXMvY29u
Zm9ybWFuY2UvdHlwZWRhcnJheXMvZGF0YS12aWV3LXRlc3QuaHRtbAo9PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBM
YXlvdXRUZXN0cy93ZWJnbC8xLjAuMi9yZXNvdXJjZXMvd2ViZ2xfdGVzdF9maWxlcy9jb25mb3Jt
YW5jZS90eXBlZGFycmF5cy9kYXRhLXZpZXctdGVzdC5odG1sCShyZXZpc2lvbiAxNjA4NzUpCisr
KyBMYXlvdXRUZXN0cy93ZWJnbC8xLjAuMi9yZXNvdXJjZXMvd2ViZ2xfdGVzdF9maWxlcy9jb25m
b3JtYW5jZS90eXBlZGFycmF5cy9kYXRhLXZpZXctdGVzdC5odG1sCSh3b3JraW5nIGNvcHkpCkBA
IC0yNzAsOSArMjcwLDkgQEAgZnVuY3Rpb24gcnVuQ29uc3RydWN0b3JUZXN0cygpCiAgICAgLy8g
VXNlIHRyeS9jYXRjaCBpbnN0ZWFkIG9mIGNhbGxpbmcgc2hvdWxkVGhyb3cgdG8gYXZvaWQgZGlm
ZmVyZW50IGV4Y2VwdGlvbiBtZXNzYWdlIGJlaW5nIHJlcG9ydGVkIGZyb20gZGlmZmVyZW50IHBs
YXRmb3JtLgogICAgIHRyeSB7CiAgICAgICAgIFRlc3RFdmFsKGV4cHIpOwotICAgICAgICB0ZXN0
RmFpbGVkKGV4cHIgKyAiIGRvZXMgbm90IHRocm93IGV4Y2VwdGlvbiIpOworICAgICAgICB0ZXN0
UGFzc2VkKGV4cHIgKyAiIGRvZXMgbm90IHRocm93IGV4Y2VwdGlvbiIpOwogICAgIH0gY2F0Y2gg
KGUpIHsKLSAgICAgICAgdGVzdFBhc3NlZChleHByICsgIiB0aHJldyBleGNlcHRpb24iKTsKKyAg
ICAgICAgdGVzdEZhaWxlZChleHByICsgIiB0aHJldyBleGNlcHRpb24iKTsKICAgICB9CiAKICAg
ICBkZWJ1ZygiIik7Cg==
</data>
<flag name="review"
          id="243368"
          type_id="1"
          status="+"
          setter="dino"
    />
          </attachment>
      

    </bug>

</bugzilla>