<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[166321] branches/safari-537.75-branch</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/166321">166321</a></dd>
<dt>Author</dt> <dd>matthew_hanson@apple.com</dd>
<dt>Date</dt> <dd>2014-03-26 15:02:26 -0700 (Wed, 26 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Versioning.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchessafari53775branchSourceJavaScriptCoreConfigurationsVersionxcconfig">branches/safari-537.75-branch/Source/JavaScriptCore/Configurations/Version.xcconfig</a></li>
<li><a href="#branchessafari53775branchSourceWebCoreConfigurationsVersionxcconfig">branches/safari-537.75-branch/Source/WebCore/Configurations/Version.xcconfig</a></li>
<li><a href="#branchessafari53775branchSourceWebInspectorUIConfigurationsVersionxcconfig">branches/safari-537.75-branch/Source/WebInspectorUI/Configurations/Version.xcconfig</a></li>
<li><a href="#branchessafari53775branchSourceWebKitmacConfigurationsVersionxcconfig">branches/safari-537.75-branch/Source/WebKit/mac/Configurations/Version.xcconfig</a></li>
<li><a href="#branchessafari53775branchSourceWebKit2ConfigurationsVersionxcconfig">branches/safari-537.75-branch/Source/WebKit2/Configurations/Version.xcconfig</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>branches/safari-537.75-branch/LayoutTests/js/resources/</li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesJSONparsejs">branches/safari-537.75-branch/LayoutTests/js/resources/JSON-parse.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesJSONstringifyjs">branches/safari-537.75-branch/LayoutTests/js/resources/JSON-stringify.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesbominfileretainscorrectoffsetjs">branches/safari-537.75-branch/LayoutTests/js/resources/bom-in-file-retains-correct-offset.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcescodegentemporariesmultipleglobalblocks1js">branches/safari-537.75-branch/LayoutTests/js/resources/codegen-temporaries-multiple-global-blocks-1.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcescodegentemporariesmultipleglobalblocks2js">branches/safari-537.75-branch/LayoutTests/js/resources/codegen-temporaries-multiple-global-blocks-2.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesconstjs">branches/safari-537.75-branch/LayoutTests/js/resources/const.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesdocumentallbetweenframessubframehtml">branches/safari-537.75-branch/LayoutTests/js/resources/document-all-between-frames-subframe.html</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesemptyworkerjs">branches/safari-537.75-branch/LayoutTests/js/resources/empty-worker.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesfstestpostjs">branches/safari-537.75-branch/LayoutTests/js/resources/fs-test-post.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesgarbagecollectafterstringappendsjsdisabled">branches/safari-537.75-branch/LayoutTests/js/resources/garbage-collect-after-string-appends.js-disabled</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesgetOwnPropertyDescriptorjs">branches/safari-537.75-branch/LayoutTests/js/resources/getOwnPropertyDescriptor.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesimagepreloadhelperjs">branches/safari-537.75-branch/LayoutTests/js/resources/image-preload-helper.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesinstanceofoperatordummyworkerjs">branches/safari-537.75-branch/LayoutTests/js/resources/instanceof-operator-dummy-worker.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesjsconstructorsusecorrectglobaljs">branches/safari-537.75-branch/LayoutTests/js/resources/js-constructors-use-correct-global.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesjstestpostasyncjs">branches/safari-537.75-branch/LayoutTests/js/resources/js-test-post-async.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesjstestpostjs">branches/safari-537.75-branch/LayoutTests/js/resources/js-test-post.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesjstestprejs">branches/safari-537.75-branch/LayoutTests/js/resources/js-test-pre.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesjsteststylecss">branches/safari-537.75-branch/LayoutTests/js/resources/js-test-style.css</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesjson2es5compatjs">branches/safari-537.75-branch/LayoutTests/js/resources/json2-es5-compat.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourceslexicallookupinfunctionconstructorchildhtml">branches/safari-537.75-branch/LayoutTests/js/resources/lexical-lookup-in-function-constructor-child.html</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesparseerrorexternalscriptinevaljs">branches/safari-537.75-branch/LayoutTests/js/resources/parse-error-external-script-in-eval.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesparseerrorexternalscriptinnewFunctionjs">branches/safari-537.75-branch/LayoutTests/js/resources/parse-error-external-script-in-new-Function.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesscriptlinenumberjs">branches/safari-537.75-branch/LayoutTests/js/resources/script-line-number.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesselectoptionsremovejs">branches/safari-537.75-branch/LayoutTests/js/resources/select-options-remove.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesstandalonepostjs">branches/safari-537.75-branch/LayoutTests/js/resources/standalone-post.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesstandaloneprejs">branches/safari-537.75-branch/LayoutTests/js/resources/standalone-pre.js</a></li>
<li><a href="#branchessafari53775branchLayoutTestsjsresourcesstringconcatenateoutofmemoryjs">branches/safari-537.75-branch/LayoutTests/js/resources/string-concatenate-outofmemory.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchessafari53775branchLayoutTestsjsresourcesJSONparsejs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/JSON-parse.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/JSON-parse.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/JSON-parse.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,576 @@
</span><ins>+
+function createTests() {
+    var result = [];
+    result.push(function(jsonObject){
+        return jsonObject.parse();
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('1');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('-1');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('Infinity');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('NaN');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('null');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('undefined');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{}');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('({})');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{a}');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{a:}');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{a:5}');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{a:5,}');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{&quot;a&quot;}');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{&quot;a&quot;:}');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{&quot;a&quot;:5}');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('{&quot;__proto__&quot;:5}');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('{&quot;a&quot;:5,}');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{&quot;a&quot;:5,,}');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{&quot;a&quot;:5,&quot;a&quot;,}');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{&quot;a&quot;:(5,&quot;a&quot;),}');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('[]');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('[1]');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('[1,]');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('[1,2]');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('[1,2,,]');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('[1,2,,4]');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;&quot;');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;\'&quot;');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\&quot;');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\&quot;');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\z&quot;');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\\z&quot;');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\\\z&quot;');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\tz&quot;');
+    });
+    result[result.length - 1].throws = true; // rfc4627 does not allow literal tab characters in JSON source
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\tz&quot;');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\nz&quot;');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\nz&quot;');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\rz&quot;');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\rz&quot;');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\/z&quot;');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\/z&quot;');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\bz&quot;');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\bz&quot;');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\rz&quot;');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\rz&quot;');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\uz&quot;     ');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u0z&quot;    ');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u00z&quot;   ');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u000z&quot;  ');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u0000z&quot; ');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u000Az&quot; ');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u000az&quot; ');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u000Gz&quot; ');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u000gz&quot; ');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u00A0z&quot; ');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u00a0z&quot; ');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u00G0z&quot; ');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u00g0z&quot; ');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u0A00z&quot; ');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u0a00z&quot; ');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u0G00z&quot; ');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\u0g00z&quot; ');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\uA000z&quot; ');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\ua000z&quot; ');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\uG000z&quot; ');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a\\ug000z&quot; ');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('00');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('01');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('0.a');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('0x0');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('2e1.3');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('2e-+10');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('2e+-10');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('2e3e4');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('-01.0');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('-01');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('-01.a');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('1.e1');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{/* block comments are not allowed */}');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('{// line comments are not allowed \n}');
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.parse('true');
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('false');
+    });
+    var simpleArray = ['a', 'b', 'c'];
+    var simpleObject = {a:&quot;1&quot;, b:&quot;2&quot;, c:&quot;3&quot;};
+    var complexArray = ['a', 'b', 'c',,,simpleObject, simpleArray, [simpleObject,simpleArray]];
+    var complexObject = {a:&quot;1&quot;, b:&quot;2&quot;, c:&quot;3&quot;, d:4.5e10, g: 0.45e-5, h: 0.0, i: 0, j:.5, k:0., l:-0, m:-0.0, n:-0., o:-.5, p:-0.45e-10, q:-4.5e10, e:null, &quot;&quot;:12, f: simpleArray, array: complexArray};
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(simpleObject));
+    });
+    result[result.length - 1].expected = JSON.stringify(simpleObject);
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(complexObject));
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(complexObject));
+    });
+    result[result.length - 1].expected = JSON.stringify(complexObject);
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(simpleObject,null,100));
+    });
+    result[result.length - 1].expected = JSON.stringify(simpleObject);
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(complexObject,null,100));
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(complexObject,null,100));
+    });
+    result[result.length - 1].expected = JSON.stringify(complexObject);
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(simpleObject,null,&quot; &quot;));
+    });
+    result[result.length - 1].expected = JSON.stringify(simpleObject);
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(complexObject,null,&quot; &quot;));
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(complexObject,null,&quot; &quot;));
+    });
+    result[result.length - 1].expected = JSON.stringify(complexObject);
+    
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(simpleObject,null,&quot;\t&quot;));
+    });
+    result[result.length - 1].expected = JSON.stringify(simpleObject);
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(complexObject,null,&quot;\t&quot;));
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(complexObject,null,&quot;\t&quot;));
+    });
+    result[result.length - 1].expected = JSON.stringify(complexObject);
+    
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(simpleObject,null,&quot;\n&quot;));
+    });
+    result[result.length - 1].expected = JSON.stringify(simpleObject);
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(complexObject,null,&quot;\n&quot;));
+    });
+    result[result.length - 1].expected = JSON.stringify(complexObject);
+    function log(key, value) {
+        var o = {};
+        o[key] = value;
+        o.keyType = typeof key;
+        return o;
+    }
+    result.push(function(jsonObject){
+        return jsonObject.parse(&quot;true&quot;, log);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse(&quot;false&quot;, log);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse(&quot;null&quot;, log);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse(&quot;1&quot;, log);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse(&quot;1.5&quot;, log);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('&quot;a string&quot;', log);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(simpleArray), log);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(complexArray), log);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(simpleObject), log);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(complexObject), log);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.parse('{&quot;__proto__&quot;:{&quot;a&quot;:5}}', log);
+    });
+    var logOrderString;
+    function logOrder(key, value) {
+        logOrderString += key +&quot;:&quot;+JSON.stringify(value);
+        return null;
+    }
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse(&quot;true&quot;, logOrder);
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse(&quot;false&quot;, logOrder);
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse(&quot;null&quot;, logOrder);
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse(&quot;1&quot;, logOrder);
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse(&quot;1.5&quot;, logOrder);
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse('&quot;a string&quot;', logOrder);
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse(JSON.stringify(simpleArray), logOrder);
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse(JSON.stringify(complexArray), logOrder);
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse(JSON.stringify(simpleObject), logOrder);
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse(JSON.stringify(complexObject), logOrder);
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        jsonObject.parse(&quot;true&quot;, logOrder);
+        return logOrderString;
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        jsonObject.parse(&quot;false&quot;, logOrder);
+        return logOrderString;
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        jsonObject.parse(&quot;null&quot;, logOrder);
+        return logOrderString;
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        jsonObject.parse(&quot;1&quot;, logOrder);
+        return logOrderString;
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        jsonObject.parse(&quot;1.5&quot;, logOrder);
+        return logOrderString;
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        jsonObject.parse('&quot;a string&quot;', logOrder);
+        return logOrderString;
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        jsonObject.parse(JSON.stringify(simpleArray), logOrder);
+        return logOrderString;
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        jsonObject.parse(JSON.stringify(complexArray), logOrder);
+        return logOrderString;
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        jsonObject.parse(JSON.stringify(simpleObject), logOrder);
+        return logOrderString;
+    });
+    result.push(function(jsonObject){
+        logOrderString = &quot;&quot;;
+        jsonObject.parse(JSON.stringify(complexObject), logOrder);
+        return logOrderString;
+    });
+    var callCount = 0;
+    function throwAfterFifthCall(key, value) {
+        logOrder(key, value);
+        if (++callCount &gt; 5)
+            throw &quot;from reviver&quot;;
+        return null;
+    }
+    result.push(function(jsonObject){
+        callCount = 0;
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse(JSON.stringify(complexArray), throwAfterFifthCall);
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        callCount = 0;
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse(JSON.stringify(simpleObject), throwAfterFifthCall);
+    });
+    result.push(function(jsonObject){
+        callCount = 0;
+        logOrderString = &quot;&quot;;
+        return jsonObject.parse(JSON.stringify(complexObject), throwAfterFifthCall);
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        callCount = 0;
+        logOrderString = &quot;&quot;;
+        try { jsonObject.parse(JSON.stringify(complexArray), throwAfterFifthCall); } catch (e) {}
+        return logOrderString;
+    });
+    result.push(function(jsonObject){
+        callCount = 0;
+        logOrderString = &quot;&quot;;
+        try { jsonObject.parse(JSON.stringify(simpleObject), throwAfterFifthCall); } catch (e) {}
+        return logOrderString;
+    });
+    result.push(function(jsonObject){
+        callCount = 0;
+        logOrderString = &quot;&quot;;
+        try { jsonObject.parse(JSON.stringify(complexObject), throwAfterFifthCall); } catch (e) {}
+        return logOrderString;
+    });
+    var unicode = &quot;&quot;;
+    for (var i = 0; i &lt; 1&lt;&lt;16; i++)
+        unicode += String.fromCharCode(i);
+    result.push(function(jsonObject){
+        return jsonObject.parse(JSON.stringify(unicode));
+    });
+    result[result.length - 1].unstringifiedExpected = unicode;
+    return result;
+}
+var tests = createTests();
+for (var i = 0; i &lt; tests.length; i++) {
+    try {
+        debug(tests[i]);
+        if (tests[i].throws) {
+            shouldThrow('tests[i](nativeJSON)');
+            try {
+                var threw = false;
+                tests[i](JSON);
+            } catch(e) {
+                var threw = true;
+            }
+            if (!threw)
+                debug(&quot;json2.js did not throw for a test we expect to throw.&quot;);
+        } else if (tests[i].expected)
+            try { shouldBe('JSON.stringify(tests[i](nativeJSON))',  &quot;tests[i].expected&quot;) } catch(e) { debug(&quot;threw - &quot; + e)}
+        else if (tests[i].unstringifiedExpected)
+            try { shouldBe('tests[i](nativeJSON)',  &quot;tests[i].unstringifiedExpected&quot;) } catch(e) { debug(&quot;threw - &quot; + e)}
+        else
+            try { shouldBe('JSON.stringify(tests[i](nativeJSON))',  'JSON.stringify(tests[i](JSON))') } catch(e) { debug(&quot;threw - &quot; + e) };
+    }catch(e){
+        debug(e);
+    }
+}
+
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesJSONstringifyjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/JSON-stringify.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/JSON-stringify.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/JSON-stringify.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,507 @@
</span><ins>+
+function createTests() {
+    var simpleArray = ['a', 'b', 'c'];
+    var simpleObject = {a:&quot;1&quot;, b:&quot;2&quot;, c:&quot;3&quot;};
+    var complexArray = ['a', 'b', 'c',,,simpleObject, simpleArray, [simpleObject,simpleArray]];
+    var complexObject = {a:&quot;1&quot;, b:&quot;2&quot;, c:&quot;3&quot;, d:undefined, e:null, &quot;&quot;:12, get f(){ return simpleArray; }, array: complexArray};
+    var simpleArrayWithProto = ['d', 'e', 'f'];
+    simpleArrayWithProto.__proto__ = simpleObject;
+    var simpleObjectWithProto = {d:&quot;4&quot;, e:&quot;5&quot;, f:&quot;6&quot;, __proto__:simpleObject};
+    var complexArrayWithProto = ['d', 'e', 'f',,,simpleObjectWithProto, simpleArrayWithProto, [simpleObjectWithProto,simpleArrayWithProto]];
+    complexArrayWithProto.__proto__ = simpleObjectWithProto;
+    var complexObjectWithProto = {d:&quot;4&quot;, e:&quot;5&quot;, f:&quot;6&quot;, g:undefined, h:null, &quot;&quot;:12, get i(){ return simpleArrayWithProto; }, array2: complexArrayWithProto, __proto__:complexObject};
+    var objectWithSideEffectGetter = {get b() {this.foo=1;}};
+    var objectWithSideEffectGetterAndProto = {__proto__:{foo:&quot;bar&quot;}, get b() {this.foo=1;}};
+    var arrayWithSideEffectGetter = [];
+    arrayWithSideEffectGetter.__defineGetter__(&quot;b&quot;, function(){this.foo=1;});
+    var arrayWithSideEffectGetterAndProto = [];
+    arrayWithSideEffectGetterAndProto.__defineGetter__(&quot;b&quot;, function(){this.foo=1;});
+    arrayWithSideEffectGetterAndProto.__proto__ = {foo:&quot;bar&quot;};
+    var result = [];
+    result.push(function(jsonObject){
+        return jsonObject.stringify(1);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(1.5);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(-1);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(-1.5);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(null);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(&quot;string&quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(new Number(0));
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(new Number(1));
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(new Number(1.5));
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(new Number(-1));
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(new Number(-1.5));
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(new String(&quot;a string object&quot;));
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(new Boolean(true));
+    });
+    result.push(function(jsonObject){
+        var value = new Number(1);
+        value.valueOf = function() { return 2; }
+        return jsonObject.stringify(value);
+    });
+    result[result.length - 1].expected = '2';
+    result.push(function(jsonObject){
+        var value = new Boolean(true);
+        value.valueOf = function() { return 2; }
+        return jsonObject.stringify(value);
+    });
+    result[result.length - 1].expected = '2';
+    result.push(function(jsonObject){
+        var value = new String(&quot;fail&quot;);
+        value.toString = function() { return &quot;converted string&quot;; }
+        return jsonObject.stringify(value);
+    });
+    result[result.length - 1].expected = '&quot;converted string&quot;';
+    result.push(function(jsonObject){
+        return jsonObject.stringify(true);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(false);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(new Date(0));
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({toJSON: Date.prototype.toJSON});
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return &quot;custom toISOString&quot;; }});
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return {}; }});
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ throw &quot;An exception&quot;; }});
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        var d = new Date(0);
+        d.toISOString = null;
+        return jsonObject.stringify(d);
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        var d = new Date(0);
+        d.toJSON = undefined;
+        return jsonObject.stringify(d);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({get Foo() { return &quot;bar&quot;; }});
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({get Foo() { this.foo=&quot;wibble&quot;; return &quot;bar&quot;; }});
+    });
+    result.push(function(jsonObject){
+        var count = 0;
+        jsonObject.stringify({get Foo() { count++; return &quot;bar&quot;; }});
+        return count;
+    });
+    result.push(function(jsonObject){
+        var count = 0;
+        return jsonObject.stringify({get Foo() { count++; delete this.bar; return &quot;bar&quot;; }, bar: &quot;wibble&quot;});
+    });
+    result.push(function(jsonObject){
+        var count = 0;
+        return jsonObject.stringify({a:&quot;1&quot;, b:&quot;2&quot;, c:&quot;3&quot;, 5:4, 4:5, 2:6, 1:7});
+    });
+    result.push(function(jsonObject){
+        var allString = true;
+        jsonObject.stringify({a:&quot;1&quot;, b:&quot;2&quot;, c:&quot;3&quot;, 5:4, 4:5, 2:6, 1:7}, function(k,v){allString = allString &amp;&amp; (typeof k == &quot;string&quot;); return v});
+        return allString;
+    });
+    result.push(function(jsonObject){
+        var allString = true;
+        jsonObject.stringify([1,2,3,4,5], function(k,v){allString = allString &amp;&amp; (typeof k == &quot;string&quot;); return v});
+        return allString;
+    });
+    result.push(function(jsonObject){
+        var allString = true;
+        var array = [];
+        return jsonObject.stringify({a:&quot;1&quot;, b:&quot;2&quot;, c:&quot;3&quot;, 5:4, 4:5, 2:6, 1:7}, array);
+    });
+    result.push(function(jsonObject){
+        var allString = true;
+        var array = [&quot;a&quot;];
+        return jsonObject.stringify({get a(){return 1;array[1]=&quot;b&quot;;array[2]=&quot;c&quot;}, b:&quot;2&quot;, c:&quot;3&quot;}, array);
+    });
+    result.push(function(jsonObject){
+        var allString = true;
+        var array = [{toString:function(){array[0]='a'; array[1]='c'; array[2]='b'; return 'a'}}];
+        return jsonObject.stringify(simpleObject, array);
+    });
+    result.push(function(jsonObject){
+        var allString = true;
+        var array = [{toString:function(){array[0]='a'; array[1]='c'; array[2]='b'; return 'a'}}];
+        return jsonObject.stringify(simpleObjectWithProto, array);
+    });
+    result.push(function(jsonObject){
+        var allString = true;
+        var array = [1, new Number(2), NaN, Infinity, -Infinity, new String(&quot;str&quot;)];
+        return jsonObject.stringify({&quot;1&quot;:&quot;1&quot;,&quot;2&quot;:&quot;2&quot;,&quot;NaN&quot;:&quot;NaN&quot;,&quot;Infinity&quot;:&quot;Infinity&quot;,&quot;-Infinity&quot;:&quot;-Infinity&quot;,&quot;str&quot;:&quot;str&quot;}, array);
+    });
+    result[result.length - 1].expected = '{&quot;1&quot;:&quot;1&quot;,&quot;2&quot;:&quot;2&quot;,&quot;NaN&quot;:&quot;NaN&quot;,&quot;Infinity&quot;:&quot;Infinity&quot;,&quot;-Infinity&quot;:&quot;-Infinity&quot;,&quot;str&quot;:&quot;str&quot;}';
+    result.push(function(jsonObject){
+        var allString = true;
+        var array = [&quot;1&quot;,&quot;2&quot;,&quot;3&quot;];
+        return jsonObject.stringify({1:'a', 2:'b', 3:'c'}, array);
+    });
+    result.push(function(jsonObject){
+        var allString = true;
+        var array = [&quot;1&quot;,&quot;2&quot;,&quot;3&quot;];
+        return jsonObject.stringify(simpleArray, array);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleArray, null, &quot;  &quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleArray, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleArray, null, &quot;ab&quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleArray, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObject, null, &quot;  &quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObject, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObject, null, &quot;ab&quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObject, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObject, null, 10);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObject, null, 11);
+    });
+    result[result.length - 1].expected = JSON.stringify(simpleObject, null, 10);
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObject, null, &quot;          &quot;);
+    });
+    result[result.length - 1].expected = JSON.stringify(simpleObject, null, 10);
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObject, null, &quot;           &quot;);
+    });
+    result[result.length - 1].expected = JSON.stringify(simpleObject, null, 10);
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexArray, null, &quot;  &quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexArray, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexArray, null, &quot;ab&quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexArray, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexObject, null, &quot;  &quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexObject, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexObject, null, &quot;ab&quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexObject, null, 4);
+    });
+    result.push(function(jsonObject){
+        var allString = true;
+        var array = [&quot;1&quot;,&quot;2&quot;,&quot;3&quot;];
+        return jsonObject.stringify(simpleArrayWithProto, array);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleArrayWithProto, null, &quot;  &quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleArrayWithProto, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleArrayWithProto, null, &quot;ab&quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleArrayWithProto, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObjectWithProto, null, &quot;  &quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObjectWithProto, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObjectWithProto, null, &quot;ab&quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObjectWithProto, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObjectWithProto, null, 10);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObjectWithProto, null, 11);
+    });
+    result[result.length - 1].expected = JSON.stringify(simpleObjectWithProto, null, 10);
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObjectWithProto, null, &quot;          &quot;);
+    });
+    result[result.length - 1].expected = JSON.stringify(simpleObjectWithProto, null, 10);
+    result.push(function(jsonObject){
+        return jsonObject.stringify(simpleObjectWithProto, null, &quot;           &quot;);
+    });
+    result[result.length - 1].expected = JSON.stringify(simpleObjectWithProto, null, 10);
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexArrayWithProto, null, &quot;  &quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexArrayWithProto, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexArrayWithProto, null, &quot;ab&quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexArrayWithProto, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexObjectWithProto, null, &quot;  &quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexObjectWithProto, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexObjectWithProto, null, &quot;ab&quot;);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(complexObjectWithProto, null, 4);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(objectWithSideEffectGetter);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(objectWithSideEffectGetterAndProto);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(arrayWithSideEffectGetter);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(arrayWithSideEffectGetterAndProto);
+    });
+    var replaceTracker;
+    function replaceFunc(key, value) {
+        replaceTracker += key + &quot;(&quot;+(typeof key)+&quot;)&quot; + JSON.stringify(value) + &quot;;&quot;;
+        return value;
+    }
+    result.push(function(jsonObject){
+        replaceTracker = &quot;&quot;;
+        jsonObject.stringify([1,2,3,,,,4,5,6], replaceFunc);
+        return replaceTracker;
+    });
+    result[result.length - 1].expected = '(string)[1,2,3,null,null,null,4,5,6];0(number)1;1(number)2;2(number)3;3(number)undefined;4(number)undefined;5(number)undefined;6(number)4;7(number)5;8(number)6;'
+    result.push(function(jsonObject){
+        replaceTracker = &quot;&quot;;
+        jsonObject.stringify({a:&quot;a&quot;, b:&quot;b&quot;, c:&quot;c&quot;, 3: &quot;d&quot;, 2: &quot;e&quot;, 1: &quot;f&quot;}, replaceFunc);
+        return replaceTracker;
+    });
+    result[result.length - 1].expected = '(string){&quot;1&quot;:&quot;f&quot;,&quot;2&quot;:&quot;e&quot;,&quot;3&quot;:&quot;d&quot;,&quot;a&quot;:&quot;a&quot;,&quot;b&quot;:&quot;b&quot;,&quot;c&quot;:&quot;c&quot;};1(string)&quot;f&quot;;2(string)&quot;e&quot;;3(string)&quot;d&quot;;a(string)&quot;a&quot;;b(string)&quot;b&quot;;c(string)&quot;c&quot;;';
+    result.push(function(jsonObject){
+        var count = 0;
+        var array = [{toString:function(){count++; array[0]='a'; array[1]='c'; array[2]='b'; return 'a'}}];
+        jsonObject.stringify(simpleObject, array);
+        return count;
+    });
+    result.push(function(jsonObject){
+        var allString = true;
+        var array = [{toString:function(){array[0]='a'; array[1]='c'; array[2]='b'; return 'a'}}, 'b', 'c'];
+        return jsonObject.stringify(simpleObject, array);
+    });
+    result.push(function(jsonObject){
+        var count = 0;
+        var array = [{toString:function(){count++; array[0]='a'; array[1]='c'; array[2]='b'; return 'a'}}, 'b', 'c'];
+        jsonObject.stringify(simpleObject, array);
+        return count;
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({a:&quot;1&quot;, get b() { this.a=&quot;foo&quot;; return &quot;getter&quot;; }, c:&quot;3&quot;});
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({a:&quot;1&quot;, get b() { this.c=&quot;foo&quot;; return &quot;getter&quot;; }, c:&quot;3&quot;});
+    });
+    result.push(function(jsonObject){
+        var setterCalled = false;
+        jsonObject.stringify({a:&quot;1&quot;, set b(s) { setterCalled = true; return &quot;setter&quot;; }, c:&quot;3&quot;});
+        return setterCalled;
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({a:&quot;1&quot;, get b(){ return &quot;getter&quot;; }, set b(s) { return &quot;setter&quot;; }, c:&quot;3&quot;});
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(new Array(10));
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify([undefined,,null,0,false]);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({p1:undefined,p2:null,p3:0,p4:false});
+    });
+    var cycleTracker = &quot;&quot;;
+    var cyclicObject = { get preSelf1() { cycleTracker+=&quot;preSelf1,&quot;; return &quot;preSelf1&quot;; },
+                             preSelf2: {toJSON:function(){cycleTracker+=&quot;preSelf2,&quot;; return &quot;preSelf2&quot;}},
+                             self: [],
+                         get postSelf1() { cycleTracker+=&quot;postSelf1,&quot;; return &quot;postSelf1&quot; },
+                             postSelf2: {toJSON:function(){cycleTracker+=&quot;postSelf2,&quot;; return &quot;postSelf2&quot;}},
+                             toJSON : function(key) { cycleTracker += key + &quot;(&quot;+(typeof key)+&quot;):&quot; + this; return this; }
+                       };
+    cyclicObject.self = cyclicObject;
+    result.push(function(jsonObject){
+        cycleTracker = &quot;&quot;;
+        return jsonObject.stringify(cyclicObject);
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        cycleTracker = &quot;&quot;;
+        try { jsonObject.stringify(cyclicObject); } catch(e) { cycleTracker += &quot; -&gt; exception&quot; }
+        return cycleTracker;
+    });
+    result[result.length - 1].expected = &quot;(string):[object Object]preSelf1,preSelf2,self(string):[object Object] -&gt; exception&quot;
+    var cyclicArray = [{toJSON : function(key,value) { cycleTracker += key + &quot;(&quot;+(typeof key)+&quot;):&quot; + this; cycleTracker += &quot;first,&quot;; return this; }},
+                       cyclicArray,
+                       {toJSON : function(key,value) { cycleTracker += key + &quot;(&quot;+(typeof key)+&quot;):&quot; + this; cycleTracker += &quot;second,&quot;; return this; }}];
+    cyclicArray[1] = cyclicArray;
+    result.push(function(jsonObject){
+        cycleTracker = &quot;&quot;;
+        return jsonObject.stringify(cyclicArray);
+    });
+    result[result.length - 1].throws = true;
+    result.push(function(jsonObject){
+        cycleTracker = &quot;&quot;;
+        try { jsonObject.stringify(cyclicArray); } catch(e) { cycleTracker += &quot; -&gt; exception&quot; }
+        return cycleTracker;
+    });
+    result[result.length - 1].expected = &quot;0(number):[object Object]first, -&gt; exception&quot;;
+    function createArray(len, o) { var r = []; for (var i = 0; i &lt; len; i++) r[i] = o; return r; }
+    var getterCalls;
+    var magicObject = createArray(10, {abcdefg: [1,2,5,&quot;ab&quot;, null, undefined, true, false,,], 
+                                       get calls() {return ++getterCalls; }, 
+                                       &quot;123&quot;:createArray(15, &quot;foo&quot;), 
+                                       &quot;&quot;:{a:&quot;b&quot;}});
+    result.push(function(jsonObject){
+        getterCalls = 0;
+        return jsonObject.stringify(magicObject) + &quot; :: getter calls = &quot; + getterCalls;
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(undefined);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify(null);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({toJSON:function(){ return undefined; }});
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({toJSON:function(){ return null; }});
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify([{toJSON:function(){ return undefined; }}]);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify([{toJSON:function(){ return null; }}]);
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({a:{toJSON:function(){ return undefined; }}});
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({a:{toJSON:function(){ return null; }}});
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({a:{toJSON:function(){ return function(){}; }}});
+    });
+    result.push(function(jsonObject){
+        return jsonObject.stringify({a:function(){}});
+    });
+    result.push(function(jsonObject){
+        var deepObject = {};
+        for (var i = 0; i &lt; 2048; i++)
+            deepObject = {next:deepObject};
+        return jsonObject.stringify(deepObject);
+    });
+    result.push(function(jsonObject){
+        var deepArray = [];
+        for (var i = 0; i &lt; 2048; i++)
+            deepArray = [deepArray];
+        return jsonObject.stringify(deepArray);
+    });
+    result.push(function(jsonObject){
+        var depth = 0;
+        function toDeepVirtualJSONObject() {
+            if (++depth &gt;= 2048)
+                return {};
+            var r = {};
+            r.toJSON = toDeepVirtualJSONObject;
+            return {recurse: r};
+        }
+        return jsonObject.stringify(toDeepVirtualJSONObject());
+    });
+    result.push(function(jsonObject){
+        var depth = 0;
+        function toDeepVirtualJSONArray() {
+            if (++depth &gt;= 2048)
+                return [];
+            var r = [];
+            r.toJSON = toDeepJSONArray;
+            return [r];
+        }
+        return jsonObject.stringify(toDeepVirtualJSONArray());
+    });
+    var fullCharsetString = &quot;&quot;;
+    for (var i = 0; i &lt; 65536; i++)
+        fullCharsetString += String.fromCharCode(i);
+    result.push(function(jsonObject){
+        return jsonObject.stringify(fullCharsetString);
+    });    
+    return result;
+}
+var tests = createTests();
+for (var i = 0; i &lt; tests.length; i++) {
+    try {
+        debug(tests[i]);
+        if (tests[i].throws)
+            shouldThrow('tests[i](nativeJSON)');
+        else if (tests[i].expected)
+            shouldBe('tests[i](nativeJSON)',  &quot;tests[i].expected&quot;);
+        else
+            shouldBe('tests[i](nativeJSON)',  &quot;tests[i](JSON)&quot;);
+    }catch(e){}
+}
+
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesbominfileretainscorrectoffsetjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/bom-in-file-retains-correct-offset.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/bom-in-file-retains-correct-offset.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/bom-in-file-retains-correct-offset.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+description(&quot;This ensures that BOM's scattered through a source file do not break parsing&quot;);
+function g(){function ï»¿f(){successfullyReparsed=true;shouldBeTrue('successfullyReparsed');successfullyParsed=true}f();} g()
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcescodegentemporariesmultipleglobalblocks1js"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/codegen-temporaries-multiple-global-blocks-1.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/codegen-temporaries-multiple-global-blocks-1.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/codegen-temporaries-multiple-global-blocks-1.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+function assign1()
+{
+    v1 = 0;
+    return 1;
+}
+
+function assign2()
+{
+    v2 = { a: 0 };
+    return 2;
+}
+
+function assign3()
+{
+    v3 = { a: 0 };
+    return 1;
+}
+
+function assign4()
+{
+    v4 = { a: 0 };
+    return &quot;a&quot;;
+}
+
+function assign5()
+{
+    v5 = { a: 0 };
+    return &quot;a&quot;;
+}
+
+function assign6()
+{
+    v6 = { a: 0 };
+    return 2;
+}
+
+function assign7()
+{
+    v7 = { a: 0 };
+    return &quot;a&quot;;
+}
+
+function assign8()
+{
+    v8 = { a: 0 };
+    return 1;
+}
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcescodegentemporariesmultipleglobalblocks2js"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/codegen-temporaries-multiple-global-blocks-2.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/codegen-temporaries-multiple-global-blocks-2.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/codegen-temporaries-multiple-global-blocks-2.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+description(
+'Tests whether bytecode codegen properly handles temporaries across multiple global blocks.'
+);
+
+var v1 = 1;
+v1 += assign1();
+shouldBe(&quot;v1&quot;, &quot;2&quot;);
+
+var o2 = { a: 1 };
+var v2 = o2;
+v2.a = assign2();
+shouldBe(&quot;o2.a&quot;, &quot;2&quot;);
+
+var o3 = { a: 1 };
+var v3 = o3;
+v3.a += assign3();
+shouldBe(&quot;o3.a&quot;, &quot;2&quot;);
+
+var v4 = { a: 1 };
+var r4 = v4[assign4()];
+shouldBe(&quot;r4&quot;, &quot;1&quot;);
+
+var o5 = { a: 1 };
+var v5 = o5;
+v5[assign5()] = 2;
+shouldBe(&quot;o5.a&quot;, &quot;2&quot;);
+
+var o6 = { a: 1 };
+var v6 = o6;
+v6[&quot;a&quot;] = assign6();
+shouldBe(&quot;o6.a&quot;, &quot;2&quot;);
+
+var o7 = { a: 1 };
+var v7 = o7;
+v7[assign7()] += 1;
+shouldBe(&quot;o7.a&quot;, &quot;2&quot;);
+
+var o8 = { a: 1 };
+var v8 = o8;
+v8[&quot;a&quot;] += assign8();
+shouldBe(&quot;o8.a&quot;, &quot;2&quot;);
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesconstjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/const.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/const.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/const.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,190 @@
</span><ins>+description(
+&quot;This test checks that const declarations in JavaScript work and are readonly.&quot;
+);
+
+
+shouldThrow(&quot;const redef='a'; const redef='a';&quot;);
+
+const x = &quot;RIGHT&quot;;
+x = &quot;WRONG&quot;;
+shouldBe(&quot;x&quot;, '&quot;RIGHT&quot;');
+
+const z = &quot;RIGHT&quot;, y = &quot;RIGHT&quot;;
+y = &quot;WRONG&quot;;
+shouldBe(&quot;y&quot;, '&quot;RIGHT&quot;');
+
+const one = 1;
+
+var a;
+
+// PostIncResolveNode
+a = one++;
+shouldBe(&quot;a&quot;, &quot;1&quot;);
+shouldBe(&quot;one&quot;, &quot;1&quot;);
+
+// PostDecResolveNode
+a = one--;
+shouldBe(&quot;a&quot;, &quot;1&quot;);
+shouldBe(&quot;one&quot;, &quot;1&quot;);
+
+// PreIncResolveNode
+a = ++one;
+shouldBe(&quot;a&quot;, &quot;2&quot;);
+shouldBe(&quot;one&quot;, &quot;1&quot;);
+
+// PreDecResolveNode
+a = --one;
+shouldBe(&quot;a&quot;, &quot;0&quot;);
+shouldBe(&quot;one&quot;, &quot;1&quot;);
+
+// ReadModifyConstNode
+a = one += 2;
+shouldBe(&quot;a&quot;, &quot;3&quot;);
+shouldBe(&quot;one&quot;, &quot;1&quot;);
+
+// AssignConstNode
+a = one = 2;
+shouldBe(&quot;a&quot;, &quot;2&quot;);
+shouldBe(&quot;one&quot;, &quot;1&quot;);
+
+// PostIncResolveNode
+shouldBe(&quot;function f() { const one = 1; one++; return one; } f();&quot;, &quot;1&quot;);
+shouldBe(&quot;function f() { const oneString = '1'; return oneString++; } f();&quot;, &quot;1&quot;);
+shouldBe(&quot;function f() { const one = 1; return one++; } f();&quot;, &quot;1&quot;);
+
+// PostDecResolveNode
+shouldBe(&quot;function f() { const one = 1; one--; return one; } f();&quot;, &quot;1&quot;);
+shouldBe(&quot;function f() { const oneString = '1'; return oneString--; } f();&quot;, &quot;1&quot;);
+shouldBe(&quot;function f() { const one = 1; return one--; } f();&quot;, &quot;1&quot;);
+
+// PreIncResolveNode
+shouldBe(&quot;function f() { const one = 1; ++one; return one; } f();&quot;, &quot;1&quot;);
+shouldBe(&quot;function f() { const one = 1; return ++one; } f();&quot;, &quot;2&quot;);
+
+// PreDecResolveNode
+shouldBe(&quot;function f() { const one = 1; --one; return one; } f();&quot;, &quot;1&quot;);
+shouldBe(&quot;function f() { const one = 1; return --one; } f();&quot;, &quot;0&quot;);
+
+// ReadModifyConstNode
+shouldBe(&quot;function f() { const one = 1; one += 2; return one; } f();&quot;, &quot;1&quot;);
+shouldBe(&quot;function f() { const one = 1; return one += 2; } f();&quot;, &quot;3&quot;);
+
+// AssignConstNode
+shouldBe(&quot;function f() { const one = 1; one = 2; return one; } f();&quot;, &quot;1&quot;);
+shouldBe(&quot;function f() { const one = 1; return one = 2; } f();&quot;, &quot;2&quot;);
+
+// PostIncResolveNode
+shouldBe(&quot;one++&quot;, &quot;1&quot;);
+shouldBe(&quot;one&quot;, &quot;1&quot;);
+
+// PostDecResolveNode
+shouldBe(&quot;one--&quot;, &quot;1&quot;);
+shouldBe(&quot;one&quot;, &quot;1&quot;);
+
+// PreIncResolveNode
+shouldBe(&quot;++one&quot;, &quot;2&quot;);
+shouldBe(&quot;one&quot;, &quot;1&quot;);
+
+// PreDecResolveNode
+shouldBe(&quot;--one&quot;, &quot;0&quot;);
+shouldBe(&quot;one&quot;, &quot;1&quot;);
+
+// ReadModifyConstNode
+shouldBe(&quot;one += 1&quot;, &quot;2&quot;);
+shouldBe(&quot;one&quot;, &quot;1&quot;);
+
+// AssignConstNode
+shouldBe(&quot;one = 2&quot;, &quot;2&quot;);
+shouldBe(&quot;one&quot;, &quot;1&quot;);
+
+var object = { inWith1: &quot;RIGHT&quot;, inWith2: &quot;&quot;}
+with (object) {
+    const inWith1 = &quot;WRONG&quot;;
+    const inWith2 = &quot;RIGHT&quot;;
+    inWith2 = &quot;WRONG&quot;;
+}
+shouldBe(&quot;object.inWith1&quot;, &quot;'RIGHT'&quot;);
+shouldBe(&quot;inWith2&quot;, &quot;'RIGHT'&quot;);
+
+shouldBe(&quot;(function(){ one = 2; return one; })()&quot;, &quot;1&quot;)
+var f = function g() { g=&quot;FAIL&quot;; return g; };
+shouldBe(&quot;f()&quot;, &quot;f&quot;);
+
+shouldBe(&quot;const a;&quot;, &quot;undefined&quot;);
+
+// Make sure we don't override properties placed on the global object
+var ranConstInitialiser = false;
+const bodyId = (ranConstInitialiser = true, &quot;Const initialiser overwrote existing property&quot;);
+shouldBe(&quot;bodyId&quot;, &quot;document.getElementById('bodyId')&quot;);
+shouldBeTrue(&quot;ranConstInitialiser&quot;);
+
+// Make sure that dynamic scopes (catch, with) don't break const declarations
+function tryCatch1() {
+    var bar;
+    eval(&quot;try {\
+        stuff();\
+    } catch (e) {\
+        const bar = 5;\
+    }&quot;);
+    return bar;
+}
+
+function tryCatch2() {
+    var bar;
+    try {
+        stuff();
+    } catch (e) {
+        const bar = 5;
+    }
+    return bar;
+}
+
+tryCatch1Result = tryCatch1();
+shouldBe(&quot;tryCatch1Result&quot;, &quot;5&quot;);
+tryCatch2Result = tryCatch2();
+shouldBe(&quot;tryCatch2Result&quot;, &quot;5&quot;);
+
+function with1() {
+    var bar;
+    eval(&quot;with({foo:42}) const bar = 5;&quot;);
+    return bar;
+}
+
+function with2() {
+    var bar;
+    with({foo:42}) const bar = 5;
+    return bar;
+}
+
+with1Result = with1();
+shouldBe(&quot;with1Result&quot;, &quot;5&quot;);
+with2Result = with2();
+shouldBe(&quot;with2Result&quot;, &quot;5&quot;);
+
+(function () {
+    function shouldBe(aDescription, a, b)
+    {
+        if (a === b) {
+            testPassed(&quot;PASS: &quot; + aDescription + &quot; should be &quot; + b + &quot; and is.&quot;);
+            return;
+        }
+
+        testFailed(&quot;FAIL: &quot; + aDescription + &quot; should be &quot; + b + &quot; but instead is &quot; + a + &quot;.&quot;);
+    }
+
+    (function() {
+        const x = &quot;1&quot;;
+        shouldBe(&quot;++x&quot;, ++x, 2);
+        shouldBe(&quot;--x&quot;, --x, 0);
+        shouldBe(&quot;x&quot;, x, &quot;1&quot;);
+        shouldBe(&quot;x++&quot;, x++, 1);
+        shouldBe(&quot;x&quot;, x, &quot;1&quot;);
+    })();
+    (function() {
+        const x = 1;
+        shouldBe(&quot;++x&quot;, ++x, 2);
+        shouldBe(&quot;x&quot;, x, 1);
+        shouldBe(&quot;x++&quot;, x++, 1);
+        shouldBe(&quot;x&quot;, x, 1);
+    })();
+})();
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesdocumentallbetweenframessubframehtml"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/document-all-between-frames-subframe.html (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/document-all-between-frames-subframe.html                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/document-all-between-frames-subframe.html        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,75 @@
</span><ins>+&lt;!DOCTYPE HTML&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;title&gt;Subframe&lt;/title&gt;
+&lt;script src=&quot;resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;script&gt;
+var documentDotAll = window.passDown;
+window.parent.passUp = [];
+
+if (document.all) {
+    window.parent.passUp.push(&quot;FAIL: if (document.all) didn't masqueraded as undefined&quot;); 
+} else {
+    window.parent.passUp.push(&quot;if (document.all) masqueraded as undefined&quot;); 
+}
+
+for (var i = 0; i &lt; 300; i++) {
+if (documentDotAll) {
+    window.parent.passUp.push(&quot;if (documentDotAll) did not masquerade as undefined&quot;);
+} else {
+    window.parent.passUp.push(&quot;FAIL: if (documentDotAll) masqueraded as undefined&quot;); 
+}
+
+if (documentDotAll == null) {
+    window.parent.passUp.push(&quot;FAIL: if (documentDotAll == null) masqueraded as undefined&quot;); 
+} else {
+    window.parent.passUp.push(&quot;if (documentDotAll == null) did not masquerade as undefined&quot;);
+}
+
+if (documentDotAll == undefined) {
+    window.parent.passUp.push(&quot;FAIL: if (documentDotAll == undefined) masqueraded as undefined&quot;); 
+} else {
+    window.parent.passUp.push(&quot;if (documentDotAll == undefined) did not masquerade as undefined&quot;);
+}
+
+if (!documentDotAll) {
+    window.parent.passUp.push(&quot;FAIL: if (!documentDotAll) masqueraded as undefined&quot;); 
+} else {
+    window.parent.passUp.push(&quot;if (!documentDotAll) did not masquerade as undefined&quot;);
+}
+
+if (documentDotAll != null) {
+    window.parent.passUp.push(&quot;if (documentDotAll != null) did not masquerade as undefined&quot;);
+} else {
+    window.parent.passUp.push(&quot;FAIL: if (documentDotAll != null) masqueraded as undefined&quot;); 
+}
+
+if (documentDotAll != undefined) {
+    window.parent.passUp.push(&quot;if (documentDotAll != undefined) did not masquerade as undefined&quot;);
+} else {
+    window.parent.passUp.push(&quot;FAIL: if (documentDotAll != undefined) masqueraded as undefined&quot;); 
+}
+
+if (documentDotAll === undefined) {
+    window.parent.passUp.push(&quot;FAIL: if (documentDotAll === undefined) masqueraded as undefined&quot;); 
+} else {
+    window.parent.passUp.push(&quot;if (documentDotAll === undefined) did not masquerade as undefined&quot;);
+}
+
+if (documentDotAll !== undefined) {
+    window.parent.passUp.push(&quot;if (documentDotAll !== undefined) did not masquerade as undefined&quot;);
+} else {
+    window.parent.passUp.push(&quot;FAIL: if (documentDotAll !== undefined) masqueraded as undefined&quot;); 
+}
+
+if (typeof documentDotAll === &quot;undefined&quot;) {
+    window.parent.passUp.push(&quot;FAIL: if (typeof documentDotAll === \&quot;undefined\&quot;) masqueraded as undefined&quot;);
+} else {
+    window.parent.passUp.push(&quot;if (typeof documentDotAll === \&quot;undefined\&quot;) did not masquerade as undefined&quot;);
+}
+}
+&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesemptyworkerjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/empty-worker.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/empty-worker.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/empty-worker.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+self.close();
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesfstestpostjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/fs-test-post.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/fs-test-post.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/fs-test-post.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+wasPostTestScriptParsed = true;
+
+if (window.testRunner)
+    testRunner.waitUntilDone();
+if (window.wasFinishJSTestCalled)
+    finishJSTest();
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesgarbagecollectafterstringappendsjsdisabled"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/garbage-collect-after-string-appends.js-disabled (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/garbage-collect-after-string-appends.js-disabled                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/garbage-collect-after-string-appends.js-disabled        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+description(
+&quot;This test checks whether the GC collects after string appends.&quot;
+);
+
+// FIXME: This test appears to be highly tied to the details of how JS strings report memory
+// cost to the garbage collector.  It should be improved to be less tied to these implementation details.
+// &lt;https://bugs.webkit.org/show_bug.cgi?id=20871&gt;
+
+if (window.testRunner)
+    testRunner.dumpAsText();
+
+if (window.GCController)
+    GCController.collect();
+
+
+// str has 150 chars in it (which is greater than the limit of the GC to ignore which I believe is at 128).
+var str = &quot;123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890&quot;;
+var count = 500;
+for (var i = 0; i &lt; count; ++i) {
+    str += &quot;b&quot;;
+}
+
+// str has 128 chars in it.
+str = &quot;123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890&quot;;
+count = 10;
+for (var i = 0; i &lt; count; ++i) {
+    str += str;
+}
+
+var jsObjCount = 0;
+if (window.GCController)
+    jsObjCount = GCController.getJSObjectCount();
+
+if (jsObjCount &lt;= 500 &amp;&amp; jsObjCount &gt; 0)
+    testPassed(&quot;Garbage Collector triggered&quot;)
+else
+    testFailed(&quot;Garbage Collector NOT triggered. Number of JSObjects: &quot; + jsObjCount);
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesgetOwnPropertyDescriptorjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/getOwnPropertyDescriptor.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/getOwnPropertyDescriptor.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/getOwnPropertyDescriptor.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,96 @@
</span><ins>+description(&quot;Test to ensure correct behaviour of Object.getOwnPropertyDescriptor&quot;);
+
+function descriptorShouldBe(object, property, expected) {
+    var test = 'Object.getOwnPropertyDescriptor('+object+&quot;, &quot;+property+')';
+    if (&quot;writable&quot; in expected) {
+      //  shouldBe(test+'.writable', '' + expected.writable);
+        shouldBe(test+'.value', '' + expected.value);
+        shouldBeFalse(test+&quot;.hasOwnProperty('get')&quot;);
+        shouldBeFalse(test+&quot;.hasOwnProperty('set')&quot;);
+    } else {
+        shouldBe(test+'.get', '' + expected.get);
+        shouldBe(test+'.set', '' + expected.set);
+        shouldBeFalse(test+&quot;.hasOwnProperty('value')&quot;);
+        shouldBeFalse(test+&quot;.hasOwnProperty('writable')&quot;);
+    }
+    shouldBe(test+'.enumerable', '' + expected.enumerable);
+    shouldBe(test+'.configurable', '' + expected.configurable);
+}
+
+shouldBeUndefined(&quot;Object.getOwnPropertyDescriptor({}, 'undefinedProperty')&quot;);
+descriptorShouldBe(&quot;{definedProperty:'defined'}&quot;, &quot;'definedProperty'&quot;, {writable: true, enumerable: true, configurable: true, value:'&quot;defined&quot;'});
+descriptorShouldBe(&quot;Array.prototype&quot;, &quot;'concat'&quot;, {writable: true, enumerable: false, configurable: true, value:&quot;Array.prototype.concat&quot;});
+descriptorShouldBe(&quot;Date.prototype&quot;, &quot;'toISOString'&quot;, {writable: true, enumerable: false, configurable: true, value: &quot;Date.prototype.toISOString&quot;});
+descriptorShouldBe(&quot;String.prototype&quot;, &quot;'concat'&quot;, {writable: true, enumerable: false, configurable: true, value:&quot;String.prototype.concat&quot;});
+descriptorShouldBe(&quot;RegExp.prototype&quot;, &quot;'exec'&quot;, {writable: true, enumerable: false, configurable: true, value:&quot;RegExp.prototype.exec&quot;});
+descriptorShouldBe(&quot;document.__proto__.__proto__&quot;, &quot;'createElement'&quot;, {writable: true, enumerable: true, configurable: false, value:&quot;document.createElement&quot;});
+descriptorShouldBe(&quot;Number&quot;, &quot;'NEGATIVE_INFINITY'&quot;, {writable: false, enumerable: false, configurable: false, value:&quot;Number.NEGATIVE_INFINITY&quot;});
+descriptorShouldBe(&quot;RegExp&quot;, &quot;'$_'&quot;, {writable: true, enumerable: false, configurable: true, value:&quot;RegExp.$_&quot;});
+descriptorShouldBe(&quot;/a/g&quot;, &quot;'global'&quot;, {writable: true, enumerable: false, configurable: false, value:true});
+descriptorShouldBe(&quot;Node&quot;, &quot;'DOCUMENT_POSITION_DISCONNECTED'&quot;, {writable: false, enumerable: true, configurable: false, value:&quot;Node.DOCUMENT_POSITION_DISCONNECTED&quot;});
+descriptorShouldBe(&quot;Math&quot;, &quot;'sin'&quot;, {writable: true, enumerable: false, configurable: true, value:&quot;Math.sin&quot;});
+descriptorShouldBe(&quot;[1,2,3]&quot;, &quot;0&quot;, {writable: true, enumerable: true, configurable: true, value:&quot;1&quot;});
+descriptorShouldBe(&quot;[1,2,3]&quot;, &quot;'length'&quot;, {writable: true, enumerable: false, configurable: false, value:&quot;3&quot;});
+descriptorShouldBe(&quot;[1,2,3]&quot;, &quot;'length'&quot;, {writable: true, enumerable: false, configurable: false, value:&quot;3&quot;});
+descriptorShouldBe(&quot;/(a)*/g.exec('a')&quot;, &quot;0&quot;, {writable: true, enumerable: true, configurable: true, value:&quot;'a'&quot;});
+descriptorShouldBe(&quot;/(a)*/g.exec('a')&quot;, &quot;'length'&quot;, {writable: true, enumerable: false, configurable: false, value:2});
+descriptorShouldBe(&quot;function(){}&quot;, &quot;'length'&quot;, {writable: false, enumerable: false, configurable: false, value:0});
+descriptorShouldBe(&quot;Math.sin&quot;, &quot;'length'&quot;, {writable: false, enumerable: false, configurable: false, value:1});
+descriptorShouldBe(&quot;Math.sin&quot;, &quot;'name'&quot;, {writable: false, enumerable: false, configurable: false, value:&quot;'sin'&quot;});
+var global = this;
+descriptorShouldBe(&quot;global&quot;, &quot;'global'&quot;, {writable: true, enumerable: true, configurable: false, value:&quot;global&quot;});
+descriptorShouldBe(&quot;global&quot;, &quot;'undefined'&quot;, {writable: false, enumerable: false, configurable: false, value:&quot;undefined&quot;});
+descriptorShouldBe(&quot;global&quot;, &quot;'NaN'&quot;, {writable: false, enumerable: false, configurable: false, value:&quot;NaN&quot;});
+descriptorShouldBe(&quot;global&quot;, &quot;'Infinity'&quot;, {writable: false, enumerable: false, configurable: false, value:&quot;Infinity&quot;});
+descriptorShouldBe(&quot;global&quot;, &quot;'window'&quot;, {writable: false, enumerable: true, configurable: false, value:&quot;global&quot;});
+descriptorShouldBe(&quot;global&quot;, &quot;'XMLHttpRequest'&quot;, {writable: true, enumerable: false, configurable: true, value:&quot;XMLHttpRequest&quot;});
+descriptorShouldBe(&quot;global&quot;, &quot;'length'&quot;, {writable: true, enumerable: true, configurable: false, value:&quot;global.length&quot;});
+descriptorShouldBe(&quot;global&quot;, &quot;0&quot;, {writable: true, enumerable: false, configurable: false, value:&quot;global[0]&quot;});
+descriptorShouldBe(&quot;document.getElementsByTagName('div')&quot;, &quot;'length'&quot;, {writable: false, enumerable: true, configurable: false, value:&quot;1&quot;});
+descriptorShouldBe(&quot;document.getElementsByTagName('div')&quot;, &quot;0&quot;, {writable: false, enumerable: true, configurable: false, value:&quot;document.getElementsByTagName('div')[0]&quot;});
+descriptorShouldBe(&quot;document.getElementsByClassName('pass')&quot;, &quot;0&quot;, {writable: false, enumerable: true, configurable: false, value:&quot;document.getElementsByClassName('pass')[0]&quot;});
+descriptorShouldBe(&quot;document.getElementsByClassName('pass')&quot;, &quot;'length'&quot;, {writable: false, enumerable: true, configurable: false, value:&quot;document.getElementsByClassName('pass').length&quot;});
+var canvas = document.createElement(&quot;canvas&quot;);
+var canvasPixelArray = canvas.getContext(&quot;2d&quot;).createImageData(10,10).data;
+descriptorShouldBe(&quot;canvasPixelArray&quot;, &quot;'length'&quot;, {writable: false, enumerable: true, configurable: false, value:&quot;canvasPixelArray.length&quot;});
+descriptorShouldBe(&quot;canvasPixelArray&quot;, &quot;0&quot;, {writable: true, enumerable: true, configurable: false, value:&quot;canvasPixelArray[0]&quot;});
+var select = document.createElement(&quot;select&quot;);
+select.innerHTML = &quot;&lt;option&gt;foo&lt;/option&gt;&quot;;
+descriptorShouldBe(&quot;select&quot;, &quot;'length'&quot;, {writable: false, enumerable: true, configurable: false, value:&quot;select.length&quot;});
+descriptorShouldBe(&quot;select&quot;, &quot;0&quot;, {writable: true, enumerable: true, configurable: false, value:&quot;select[0]&quot;});
+
+var objectWithGetter = {};
+function getterFunc(){};
+objectWithGetter.__defineGetter__(&quot;getter&quot;, getterFunc);
+descriptorShouldBe(&quot;objectWithGetter&quot;, &quot;'getter'&quot;, {&quot;get&quot;: &quot;getterFunc&quot;, &quot;set&quot;: undefined, enumerable: true, configurable: true});
+var objectWithSetter = {};
+function setterFunc(){};
+objectWithSetter.__defineSetter__(&quot;setter&quot;, setterFunc);
+descriptorShouldBe(&quot;objectWithSetter&quot;, &quot;'setter'&quot;, {&quot;set&quot;: &quot;setterFunc&quot;, &quot;get&quot;: undefined, enumerable: true, configurable: true});
+var objectWithAccessor = {};
+objectWithAccessor.__defineSetter__(&quot;accessor&quot;, setterFunc);
+objectWithAccessor.__defineGetter__(&quot;accessor&quot;, getterFunc);
+descriptorShouldBe(&quot;objectWithAccessor&quot;, &quot;'accessor'&quot;, {&quot;set&quot;: &quot;setterFunc&quot;, &quot;get&quot;: &quot;getterFunc&quot;, enumerable: true, configurable: true});
+
+shouldThrow(&quot;Object.getOwnPropertyDescriptor(null)&quot;);
+shouldThrow(&quot;Object.getOwnPropertyDescriptor(undefined)&quot;);
+shouldThrow(&quot;Object.getOwnPropertyDescriptor(1)&quot;);
+shouldThrow(&quot;Object.getOwnPropertyDescriptor('')&quot;);
+shouldThrow(&quot;Object.getOwnPropertyDescriptor(true)&quot;);
+shouldThrow(&quot;Object.getOwnPropertyDescriptor(false)&quot;);
+
+debug(&quot;Checking property ordering&quot;);
+var normalOrder = [&quot;'value'&quot;, &quot;'writable'&quot;, &quot;'enumerable'&quot;, &quot;'configurable'&quot;];
+var accessorOrder = [&quot;'get'&quot;, &quot;'set'&quot;, &quot;'enumerable'&quot;, &quot;'configurable'&quot;];
+var i = 0;
+for (var property in Object.getOwnPropertyDescriptor(Math, &quot;sin&quot;))
+    shouldBe('property', normalOrder[i++]);
+i = 0;
+for (var property in Object.getOwnPropertyDescriptor(objectWithGetter, &quot;getter&quot;))
+    shouldBe('property', accessorOrder[i++]);
+i = 0;
+for (var property in Object.getOwnPropertyDescriptor(objectWithSetter, &quot;setter&quot;))
+    shouldBe('property', accessorOrder[i++]);
+i = 0;
+for (var property in Object.getOwnPropertyDescriptor(objectWithAccessor, &quot;accessor&quot;))
+    shouldBe('property', accessorOrder[i++]);
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesimagepreloadhelperjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/image-preload-helper.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/image-preload-helper.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/image-preload-helper.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,74 @@
</span><ins>+// This is used by several tests to help get images reliably preloaded.
+
+// Given a node, loads all urls specified in style declarations
+// attached to the node or it's decendants.
+// imageCount specifies the number of images we expect to find (to try to add some
+// protection against brittleness due to imperfect url parsing, since other missing a preload
+// will typically result in a test that fails only occasionally).
+// If failPattern is specified, then any url that matches the regex
+// will be expected to fail to load.
+function preloadImagesFromStyle(rootNode, imageCount, onComplete, failPattern) {
+    var basePath = location.href.substring(0, location.href.lastIndexOf('/') + 1);
+    var nodes = rootNode.querySelectorAll('[style]');
+    var imagesToLoad = [];
+    var seenUrls = {};
+    for (var i = 0; i &lt; nodes.length; i++) {
+        var urls = nodes[i].style.cssText.split(/url\w*\(([^)]*)\)/);
+        for (var j = 1; j &lt; urls.length; j += 2) {
+            // Attempt to convert URL to a relative path in order to have deterministic error messages.
+            var url = urls[j];
+            if (url.indexOf(basePath) == 0)
+                url = url.substring(basePath.length);
+
+            var error = false;
+            if (failPattern &amp;&amp; failPattern.test(url))
+                error = true;
+            if (url in seenUrls)
+                continue;
+            seenUrls[url] = true;
+            imagesToLoad.push({url: url, error: error});
+        }
+    }
+
+    if (imageCount != imagesToLoad.length) {
+        var msg = 'Found the following ' + imagesToLoad.length + ' images, when expecting ' + imageCount + ': ';
+        for (var i = 0; i &lt; imagesToLoad.length; i++) {
+            msg += '\n' + imagesToLoad[i].url;
+        }
+        testFailed(msg);
+    }
+
+    loadImages(imagesToLoad, onComplete);
+}
+
+// For each object in the given array, attempt to load the image specified by the
+// url property.  If the error property is specified and true, then the load is
+// expected to fail.  Once all loads have completed or failed, onComplete is invoked.
+function loadImages(imagesToLoad, onComplete) {
+
+    var imagesLeftToLoad = imagesToLoad.length;
+
+    function onImageLoad(url, success, e) {
+        // This debug output order is non-deterministic - only show when not running in DRT
+        if (!window.testRunner)
+            debug( 'Event &quot;' + e.type + '&quot;: ' + url);
+
+        if (!success)
+            testFailed('Got unexpected \'' + e.type + '\' event for image: ' + url);
+        
+        imagesLeftToLoad--;
+        if (imagesLeftToLoad == 0) {
+            onComplete();
+        }
+        if (imagesLeftToLoad &lt; 0)
+            testFailed('Got more load/error callbacks than expected.');
+    }
+
+    for (var i = 0; i &lt; imagesToLoad.length; i++) {
+        var img = new Image();
+        var expectError = imagesToLoad[i].error;
+        img.addEventListener('load', onImageLoad.bind(undefined, imagesToLoad[i].url, !expectError));
+        img.addEventListener('error', onImageLoad.bind(undefined, imagesToLoad[i].url, !!expectError));
+        img.src = imagesToLoad[i].url;
+    }
+}
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesinstanceofoperatordummyworkerjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/instanceof-operator-dummy-worker.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/instanceof-operator-dummy-worker.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/instanceof-operator-dummy-worker.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+// Empty JavaScript file.
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesjsconstructorsusecorrectglobaljs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/js-constructors-use-correct-global.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/js-constructors-use-correct-global.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/js-constructors-use-correct-global.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+description(&quot;Test to ensure that js constructors create objects with the correct constructor&quot;);
+
+var otherGlobal = document.getElementsByTagName(&quot;iframe&quot;)[0].contentWindow;
+var constructors = [&quot;Object&quot;, &quot;Function&quot;, &quot;Array&quot;, &quot;Number&quot;, &quot;String&quot;, &quot;Boolean&quot;, &quot;RegExp&quot;, &quot;Date&quot;, &quot;Error&quot;, &quot;RangeError&quot;, &quot;ReferenceError&quot;, &quot;SyntaxError&quot;, &quot;TypeError&quot;, &quot;URIError&quot;, &quot;Image&quot;];
+
+for (var i = 0; i &lt; constructors.length; i++) {
+    shouldBeTrue(&quot;new otherGlobal.&quot; + constructors[i] + &quot;() instanceof otherGlobal.&quot; + constructors[i]);
+    try {
+        if ((typeof (otherGlobal[constructors[i]]())) === &quot;object&quot; || (typeof (otherGlobal[constructors[i]]())) === &quot;function&quot;)
+            shouldBeTrue(&quot;otherGlobal.&quot; + constructors[i] + &quot;() instanceof otherGlobal.&quot; + constructors[i]);
+    } catch(e) {
+    
+    }
+}
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesjstestpostasyncjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/js-test-post-async.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/js-test-post-async.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/js-test-post-async.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,7 @@
</span><ins>+if (!errorMessage)
+    successfullyParsed = true;
+shouldBeTrue(&quot;successfullyParsed&quot;);
+debug('&lt;br /&gt;&lt;span class=&quot;pass&quot;&gt;TEST COMPLETE&lt;/span&gt;');
+
+if (window.testRunner)
+    testRunner.notifyDone();
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesjstestpostjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/js-test-post.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/js-test-post.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/js-test-post.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+wasPostTestScriptParsed = true;
+
+if (window.jsTestIsAsync) {
+    if (window.testRunner)
+        testRunner.waitUntilDone();
+    if (window.wasFinishJSTestCalled)
+        finishJSTest();
+} else
+    finishJSTest();
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesjstestprejs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/js-test-pre.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/js-test-pre.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/js-test-pre.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,667 @@
</span><ins>+// svg/dynamic-updates tests set enablePixelTesting=true, as we want to dump text + pixel results
+if (self.testRunner)
+    testRunner.dumpAsText(self.enablePixelTesting);
+
+var description, debug, successfullyParsed, errorMessage;
+
+(function() {
+
+    function getOrCreate(id, tagName)
+    {
+        var element = document.getElementById(id);
+        if (element)
+            return element;
+
+        element = document.createElement(tagName);
+        element.id = id;
+        var refNode;
+        var parent = document.body || document.documentElement;
+        if (id == &quot;description&quot;)
+            refNode = getOrCreate(&quot;console&quot;, &quot;div&quot;);
+        else
+            refNode = parent.firstChild;
+
+        parent.insertBefore(element, refNode);
+        return element;
+    }
+
+    description = function description(msg, quiet)
+    {
+        // For MSIE 6 compatibility
+        var span = document.createElement(&quot;span&quot;);
+        if (quiet)
+            span.innerHTML = '&lt;p&gt;' + msg + '&lt;/p&gt;&lt;p&gt;On success, you will see no &quot;&lt;span class=&quot;fail&quot;&gt;FAIL&lt;/span&gt;&quot; messages, followed by &quot;&lt;span class=&quot;pass&quot;&gt;TEST COMPLETE&lt;/span&gt;&quot;.&lt;/p&gt;';
+        else
+            span.innerHTML = '&lt;p&gt;' + msg + '&lt;/p&gt;&lt;p&gt;On success, you will see a series of &quot;&lt;span class=&quot;pass&quot;&gt;PASS&lt;/span&gt;&quot; messages, followed by &quot;&lt;span class=&quot;pass&quot;&gt;TEST COMPLETE&lt;/span&gt;&quot;.&lt;/p&gt;';
+
+        var description = getOrCreate(&quot;description&quot;, &quot;p&quot;);
+        if (description.firstChild)
+            description.replaceChild(span, description.firstChild);
+        else
+            description.appendChild(span);
+    };
+
+    debug = function debug(msg)
+    {
+        var span = document.createElement(&quot;span&quot;);
+        getOrCreate(&quot;console&quot;, &quot;div&quot;).appendChild(span); // insert it first so XHTML knows the namespace
+        span.innerHTML = msg + '&lt;br /&gt;';
+    };
+
+    var css =
+        &quot;.pass {&quot; +
+            &quot;font-weight: bold;&quot; +
+            &quot;color: green;&quot; +
+        &quot;}&quot; +
+        &quot;.fail {&quot; +
+            &quot;font-weight: bold;&quot; +
+            &quot;color: red;&quot; +
+        &quot;}&quot; +
+        &quot;#console {&quot; +
+            &quot;white-space: pre-wrap;&quot; +
+            &quot;font-family: monospace;&quot; +
+        &quot;}&quot;;
+
+    function insertStyleSheet()
+    {
+        var styleElement = document.createElement(&quot;style&quot;);
+        styleElement.textContent = css;
+        (document.head || document.documentElement).appendChild(styleElement);
+    }
+
+    if (!isWorker())
+        insertStyleSheet();
+
+    self.onerror = function(message)
+    {
+        errorMessage = message;
+    };
+
+})();
+
+function isWorker()
+{
+    // It's conceivable that someone would stub out 'document' in a worker so
+    // also check for childNodes, an arbitrary DOM-related object that is
+    // meaningless in a WorkerContext.
+    return (typeof document === 'undefined' || typeof document.childNodes === 'undefined') &amp;&amp; !!self.importScripts;
+}
+
+function descriptionQuiet(msg) { description(msg, true); }
+
+function escapeHTML(text)
+{
+    return text.replace(/&amp;/g, &quot;&amp;amp;&quot;).replace(/&lt;/g, &quot;&amp;lt;&quot;).replace(/\0/g, &quot;\\0&quot;);
+}
+
+function testPassed(msg)
+{
+    debug('&lt;span&gt;&lt;span class=&quot;pass&quot;&gt;PASS&lt;/span&gt; ' + escapeHTML(msg) + '&lt;/span&gt;');
+}
+
+function testFailed(msg)
+{
+    debug('&lt;span&gt;&lt;span class=&quot;fail&quot;&gt;FAIL&lt;/span&gt; ' + escapeHTML(msg) + '&lt;/span&gt;');
+}
+
+function areArraysEqual(_a, _b)
+{
+    try {
+        if (_a.length !== _b.length)
+            return false;
+        for (var i = 0; i &lt; _a.length; i++)
+            if (_a[i] !== _b[i])
+                return false;
+    } catch (ex) {
+        return false;
+    }
+    return true;
+}
+
+function isMinusZero(n)
+{
+    // the only way to tell 0 from -0 in JS is the fact that 1/-0 is
+    // -Infinity instead of Infinity
+    return n === 0 &amp;&amp; 1/n &lt; 0;
+}
+
+function isResultCorrect(_actual, _expected)
+{
+    if (_expected === 0)
+        return _actual === _expected &amp;&amp; (1/_actual) === (1/_expected);
+    if (_actual === _expected)
+        return true;
+    if (typeof(_expected) == &quot;number&quot; &amp;&amp; isNaN(_expected))
+        return typeof(_actual) == &quot;number&quot; &amp;&amp; isNaN(_actual);
+    if (_expected &amp;&amp; (Object.prototype.toString.call(_expected) == Object.prototype.toString.call([])))
+        return areArraysEqual(_actual, _expected);
+    return false;
+}
+
+function stringify(v)
+{
+    if (v === 0 &amp;&amp; 1/v &lt; 0)
+        return &quot;-0&quot;;
+    else return &quot;&quot; + v;
+}
+
+function evalAndLog(_a, _quiet)
+{
+  if (typeof _a != &quot;string&quot;)
+    debug(&quot;WARN: tryAndLog() expects a string argument&quot;);
+
+  // Log first in case things go horribly wrong or this causes a sync event.
+  if (!_quiet)
+    debug(_a);
+
+  var _av;
+  try {
+     _av = eval(_a);
+  } catch (e) {
+    testFailed(_a + &quot; threw exception &quot; + e);
+  }
+  return _av;
+}
+
+function shouldBe(_a, _b, quiet)
+{
+  if (typeof _a != &quot;string&quot; || typeof _b != &quot;string&quot;)
+    debug(&quot;WARN: shouldBe() expects string arguments&quot;);
+  var exception;
+  var _av;
+  try {
+     _av = eval(_a);
+  } catch (e) {
+     exception = e;
+  }
+  var _bv = eval(_b);
+
+  if (exception)
+    testFailed(_a + &quot; should be &quot; + _bv + &quot;. Threw exception &quot; + exception);
+  else if (isResultCorrect(_av, _bv)) {
+    if (!quiet) {
+        testPassed(_a + &quot; is &quot; + _b);
+    }
+  } else if (typeof(_av) == typeof(_bv))
+    testFailed(_a + &quot; should be &quot; + _bv + &quot;. Was &quot; + stringify(_av) + &quot;.&quot;);
+  else
+    testFailed(_a + &quot; should be &quot; + _bv + &quot; (of type &quot; + typeof _bv + &quot;). Was &quot; + _av + &quot; (of type &quot; + typeof _av + &quot;).&quot;);
+}
+
+// Execute condition every 5 milliseconds until it succeed or failureTime is reached.
+// completionHandler is executed on success, failureHandler is executed on timeout.
+function _waitForCondition(condition, failureTime, completionHandler, failureHandler)
+{
+  if (condition()) {
+    completionHandler();
+  } else if (Date.now() &gt; failureTime) {
+    failureHandler();
+  } else {
+    setTimeout(_waitForCondition, 5, condition, failureTime, completionHandler, failureHandler);
+  }
+}
+
+function shouldBecomeEqual(_a, _b, completionHandler, timeout)
+{
+  if (typeof _a != &quot;string&quot; || typeof _b != &quot;string&quot;)
+    debug(&quot;WARN: shouldBecomeEqual() expects string arguments&quot;);
+
+  if (timeout === undefined)
+    timeout = 500;
+
+  var condition = function() {
+    var exception;
+    var _av;
+    try {
+      _av = eval(_a);
+    } catch (e) {
+      exception = e;
+    }
+    var _bv = eval(_b);
+    if (exception)
+      testFailed(_a + &quot; should become &quot; + _bv + &quot;. Threw exception &quot; + exception);
+    if (isResultCorrect(_av, _bv)) {
+      testPassed(_a + &quot; became &quot; + _b);
+      return true;
+    }
+    return false;
+  };
+  var failureTime = Date.now() + timeout;
+  var failureHandler = function () {
+    testFailed(_a + &quot; failed to change to &quot; + _b + &quot; in &quot; + (timeout / 1000) + &quot; seconds.&quot;);
+    completionHandler();
+  };
+  _waitForCondition(condition, failureTime, completionHandler, failureHandler);
+}
+
+function shouldBecomeEqualToString(value, reference, completionHandler, timeout)
+{
+  if (typeof value !== &quot;string&quot; || typeof reference !== &quot;string&quot;)
+    debug(&quot;WARN: shouldBecomeEqualToString() expects string arguments&quot;);
+  var unevaledString = JSON.stringify(reference);
+  shouldBecomeEqual(value, unevaledString, completionHandler, timeout);
+}
+
+function shouldBeType(_a, _type) {
+  var exception;
+  var _av;
+  try {
+    _av = eval(_a);
+  } catch (e) {
+    exception = e;
+  }
+
+  var _typev = eval(_type);
+  if (_av instanceof _typev) {
+    testPassed(_a + &quot; is an instance of &quot; + _type);
+  } else {
+    testFailed(_a + &quot; is not an instance of &quot; + _type);
+  }
+}
+
+// Variant of shouldBe()--confirms that result of eval(_to_eval) is within
+// numeric _tolerance of numeric _target.
+function shouldBeCloseTo(_to_eval, _target, _tolerance, quiet)
+{
+  if (typeof _to_eval != &quot;string&quot;) {
+    testFailed(&quot;shouldBeCloseTo() requires string argument _to_eval. was type &quot; + typeof _to_eval);
+    return;
+  }
+  if (typeof _target != &quot;number&quot;) {
+    testFailed(&quot;shouldBeCloseTo() requires numeric argument _target. was type &quot; + typeof _target);
+    return;
+  }
+  if (typeof _tolerance != &quot;number&quot;) {
+    testFailed(&quot;shouldBeCloseTo() requires numeric argument _tolerance. was type &quot; + typeof _tolerance);
+    return;
+  }
+
+  var _result;
+  try {
+     _result = eval(_to_eval);
+  } catch (e) {
+    testFailed(_to_eval + &quot; should be within &quot; + _tolerance + &quot; of &quot;
+               + _target + &quot;. Threw exception &quot; + e);
+    return;
+  }
+
+  if (typeof(_result) != typeof(_target)) {
+    testFailed(_to_eval + &quot; should be of type &quot; + typeof _target
+               + &quot; but was of type &quot; + typeof _result);
+  } else if (Math.abs(_result - _target) &lt;= _tolerance) {
+    if (!quiet) {
+        testPassed(_to_eval + &quot; is within &quot; + _tolerance + &quot; of &quot; + _target);
+    }
+  } else {
+    testFailed(_to_eval + &quot; should be within &quot; + _tolerance + &quot; of &quot; + _target
+               + &quot;. Was &quot; + _result + &quot;.&quot;);
+  }
+}
+
+function shouldNotBe(_a, _b, quiet)
+{
+  if (typeof _a != &quot;string&quot; || typeof _b != &quot;string&quot;)
+    debug(&quot;WARN: shouldNotBe() expects string arguments&quot;);
+  var exception;
+  var _av;
+  try {
+     _av = eval(_a);
+  } catch (e) {
+     exception = e;
+  }
+  var _bv = eval(_b);
+
+  if (exception)
+    testFailed(_a + &quot; should not be &quot; + _bv + &quot;. Threw exception &quot; + exception);
+  else if (!isResultCorrect(_av, _bv)) {
+    if (!quiet) {
+        testPassed(_a + &quot; is not &quot; + _b);
+    }
+  } else
+    testFailed(_a + &quot; should not be &quot; + _bv + &quot;.&quot;);
+}
+
+function shouldBecomeDifferent(_a, _b, completionHandler, timeout)
+{
+  if (typeof _a != &quot;string&quot; || typeof _b != &quot;string&quot;)
+    debug(&quot;WARN: shouldBecomeDifferent() expects string arguments&quot;);
+  if (timeout === undefined)
+    timeout = 500;
+
+  var condition = function() {
+    var exception;
+    var _av;
+    try {
+      _av = eval(_a);
+    } catch (e) {
+      exception = e;
+    }
+    var _bv = eval(_b);
+    if (exception)
+      testFailed(_a + &quot; should became not equal to &quot; + _bv + &quot;. Threw exception &quot; + exception);
+    if (!isResultCorrect(_av, _bv)) {
+      testPassed(_a + &quot; became different from &quot; + _b);
+      return true;
+    }
+    return false;
+  };
+  var failureTime = Date.now() + timeout;
+  var failureHandler = function () {
+    testFailed(_a + &quot; did not become different from &quot; + _b + &quot; in &quot; + (timeout / 1000) + &quot; seconds.&quot;);
+    completionHandler();
+  };
+  _waitForCondition(condition, failureTime, completionHandler, failureHandler);
+}
+
+function shouldBeTrue(_a) { shouldBe(_a, &quot;true&quot;); }
+function shouldBeTrueQuiet(_a) { shouldBe(_a, &quot;true&quot;, true); }
+function shouldBeFalse(_a) { shouldBe(_a, &quot;false&quot;); }
+function shouldBeNaN(_a) { shouldBe(_a, &quot;NaN&quot;); }
+function shouldBeNull(_a) { shouldBe(_a, &quot;null&quot;); }
+function shouldBeZero(_a) { shouldBe(_a, &quot;0&quot;); }
+
+function shouldBeEqualToString(a, b)
+{
+  if (typeof a !== &quot;string&quot; || typeof b !== &quot;string&quot;)
+    debug(&quot;WARN: shouldBeEqualToString() expects string arguments&quot;);
+  var unevaledString = JSON.stringify(b);
+  shouldBe(a, unevaledString);
+}
+
+function shouldBeEmptyString(_a) { shouldBeEqualToString(_a, &quot;&quot;); }
+
+function shouldEvaluateTo(actual, expected) {
+  // A general-purpose comparator.  'actual' should be a string to be
+  // evaluated, as for shouldBe(). 'expected' may be any type and will be
+  // used without being eval'ed.
+  if (expected == null) {
+    // Do this before the object test, since null is of type 'object'.
+    shouldBeNull(actual);
+  } else if (typeof expected == &quot;undefined&quot;) {
+    shouldBeUndefined(actual);
+  } else if (typeof expected == &quot;function&quot;) {
+    // All this fuss is to avoid the string-arg warning from shouldBe().
+    try {
+      actualValue = eval(actual);
+    } catch (e) {
+      testFailed(&quot;Evaluating &quot; + actual + &quot;: Threw exception &quot; + e);
+      return;
+    }
+    shouldBe(&quot;'&quot; + actualValue.toString().replace(/\n/g, &quot;&quot;) + &quot;'&quot;,
+             &quot;'&quot; + expected.toString().replace(/\n/g, &quot;&quot;) + &quot;'&quot;);
+  } else if (typeof expected == &quot;object&quot;) {
+    shouldBeTrue(actual + &quot; == '&quot; + expected + &quot;'&quot;);
+  } else if (typeof expected == &quot;string&quot;) {
+    shouldBe(actual, expected);
+  } else if (typeof expected == &quot;boolean&quot;) {
+    shouldBe(&quot;typeof &quot; + actual, &quot;'boolean'&quot;);
+    if (expected)
+      shouldBeTrue(actual);
+    else
+      shouldBeFalse(actual);
+  } else if (typeof expected == &quot;number&quot;) {
+    shouldBe(actual, stringify(expected));
+  } else {
+    debug(expected + &quot; is unknown type &quot; + typeof expected);
+    shouldBeTrue(actual, &quot;'&quot;  +expected.toString() + &quot;'&quot;);
+  }
+}
+
+function shouldBeNonZero(_a)
+{
+  var exception;
+  var _av;
+  try {
+     _av = eval(_a);
+  } catch (e) {
+     exception = e;
+  }
+
+  if (exception)
+    testFailed(_a + &quot; should be non-zero. Threw exception &quot; + exception);
+  else if (_av != 0)
+    testPassed(_a + &quot; is non-zero.&quot;);
+  else
+    testFailed(_a + &quot; should be non-zero. Was &quot; + _av);
+}
+
+function shouldBeNonNull(_a)
+{
+  var exception;
+  var _av;
+  try {
+     _av = eval(_a);
+  } catch (e) {
+     exception = e;
+  }
+
+  if (exception)
+    testFailed(_a + &quot; should be non-null. Threw exception &quot; + exception);
+  else if (_av != null)
+    testPassed(_a + &quot; is non-null.&quot;);
+  else
+    testFailed(_a + &quot; should be non-null. Was &quot; + _av);
+}
+
+function shouldBeUndefined(_a)
+{
+  var exception;
+  var _av;
+  try {
+     _av = eval(_a);
+  } catch (e) {
+     exception = e;
+  }
+
+  if (exception)
+    testFailed(_a + &quot; should be undefined. Threw exception &quot; + exception);
+  else if (typeof _av == &quot;undefined&quot;)
+    testPassed(_a + &quot; is undefined.&quot;);
+  else
+    testFailed(_a + &quot; should be undefined. Was &quot; + _av);
+}
+
+function shouldBeDefined(_a)
+{
+  var exception;
+  var _av;
+  try {
+     _av = eval(_a);
+  } catch (e) {
+     exception = e;
+  }
+
+  if (exception)
+    testFailed(_a + &quot; should be defined. Threw exception &quot; + exception);
+  else if (_av !== undefined)
+    testPassed(_a + &quot; is defined.&quot;);
+  else
+    testFailed(_a + &quot; should be defined. Was &quot; + _av);
+}
+
+function shouldBeGreaterThanOrEqual(_a, _b) {
+    if (typeof _a != &quot;string&quot; || typeof _b != &quot;string&quot;)
+        debug(&quot;WARN: shouldBeGreaterThanOrEqual expects string arguments&quot;);
+
+    var exception;
+    var _av;
+    try {
+        _av = eval(_a);
+    } catch (e) {
+        exception = e;
+    }
+    var _bv = eval(_b);
+
+    if (exception)
+        testFailed(_a + &quot; should be &gt;= &quot; + _b + &quot;. Threw exception &quot; + exception);
+    else if (typeof _av == &quot;undefined&quot; || _av &lt; _bv)
+        testFailed(_a + &quot; should be &gt;= &quot; + _b + &quot;. Was &quot; + _av + &quot; (of type &quot; + typeof _av + &quot;).&quot;);
+    else
+        testPassed(_a + &quot; is &gt;= &quot; + _b);
+}
+
+function shouldNotThrow(_a) {
+    try {
+        eval(_a);
+        testPassed(_a + &quot; did not throw exception.&quot;);
+    } catch (e) {
+        testFailed(_a + &quot; should not throw exception. Threw exception &quot; + e + &quot;.&quot;);
+    }
+}
+
+function shouldThrow(_a, _e)
+{
+  var exception;
+  var _av;
+  try {
+     _av = eval(_a);
+  } catch (e) {
+     exception = e;
+  }
+
+  var _ev;
+  if (_e)
+      _ev =  eval(_e);
+
+  if (exception) {
+    if (typeof _e == &quot;undefined&quot; || exception == _ev)
+      testPassed(_a + &quot; threw exception &quot; + exception + &quot;.&quot;);
+    else
+      testFailed(_a + &quot; should throw &quot; + (typeof _e == &quot;undefined&quot; ? &quot;an exception&quot; : _ev) + &quot;. Threw exception &quot; + exception + &quot;.&quot;);
+  } else if (typeof _av == &quot;undefined&quot;)
+    testFailed(_a + &quot; should throw &quot; + (typeof _e == &quot;undefined&quot; ? &quot;an exception&quot; : _ev) + &quot;. Was undefined.&quot;);
+  else
+    testFailed(_a + &quot; should throw &quot; + (typeof _e == &quot;undefined&quot; ? &quot;an exception&quot; : _ev) + &quot;. Was &quot; + _av + &quot;.&quot;);
+}
+
+function shouldHaveHadError(message)
+{
+    if (errorMessage) {
+        if (!message)
+            testPassed(&quot;Got expected error&quot;);
+        else if (errorMessage.indexOf(message) !== -1)
+            testPassed(&quot;Got expected error: '&quot; + message + &quot;'&quot;);
+        else
+            testFailed(&quot;Unexpexted error '&quot; + message + &quot;'&quot;);
+    } else
+        testFailed(&quot;Missing expexted error&quot;);
+    errorMessage = undefined;
+}
+
+function gc() {
+    if (typeof GCController !== &quot;undefined&quot;)
+        GCController.collect();
+    else {
+        var gcRec = function (n) {
+            if (n &lt; 1)
+                return {};
+            var temp = {i: &quot;ab&quot; + i + (i / 100000)};
+            temp += &quot;foo&quot;;
+            gcRec(n-1);
+        };
+        for (var i = 0; i &lt; 1000; i++)
+            gcRec(10)
+    }
+}
+
+function isSuccessfullyParsed()
+{
+    // FIXME: Remove this and only report unexpected syntax errors.
+    if (!errorMessage)
+        successfullyParsed = true;
+    shouldBeTrue(&quot;successfullyParsed&quot;);
+    debug('&lt;br /&gt;&lt;span class=&quot;pass&quot;&gt;TEST COMPLETE&lt;/span&gt;');
+}
+
+// It's possible for an async test to call finishJSTest() before js-test-post.js
+// has been parsed.
+function finishJSTest()
+{
+    wasFinishJSTestCalled = true;
+    if (!self.wasPostTestScriptParsed)
+        return;
+    isSuccessfullyParsed();
+    if (self.jsTestIsAsync &amp;&amp; self.testRunner)
+        testRunner.notifyDone();
+}
+
+function startWorker(testScriptURL, shared)
+{
+    self.jsTestIsAsync = true;
+    debug('Starting worker: ' + testScriptURL);
+    var worker = shared ? new SharedWorker(testScriptURL, &quot;Shared Worker&quot;) : new Worker(testScriptURL);
+    worker.onmessage = function(event)
+    {
+        var workerPrefix = &quot;[Worker] &quot;;
+        if (event.data.length &lt; 5 || event.data.charAt(4) != ':') {
+          debug(workerPrefix + event.data);
+          return;
+        }
+        var code = event.data.substring(0, 4);
+        var payload = workerPrefix + event.data.substring(5);
+        if (code == &quot;PASS&quot;)
+            testPassed(payload);
+        else if (code == &quot;FAIL&quot;)
+            testFailed(payload);
+        else if (code == &quot;DESC&quot;)
+            description(payload);
+        else if (code == &quot;DONE&quot;)
+            finishJSTest();
+        else
+            debug(workerPrefix + event.data);
+    };
+
+    worker.onerror = function(event)
+    {
+        debug('Got error from worker: ' + event.message);
+        finishJSTest();
+    }
+
+    if (shared) {
+        worker.port.onmessage = function(event) { worker.onmessage(event); };
+        worker.port.start();
+    }
+    return worker;
+}
+
+if (isWorker()) {
+    var workerPort = self;
+    if (self.name == &quot;Shared Worker&quot;) {
+        self.onconnect = function(e) {
+            workerPort = e.ports[0];
+            workerPort.onmessage = function(event)
+            {
+                var colon = event.data.indexOf(&quot;:&quot;);
+                if (colon == -1) {
+                    testFailed(&quot;Unrecognized message to shared worker: &quot; + event.data);
+                    return;
+                }
+                var code = event.data.substring(0, colon);
+                var payload = event.data.substring(colon + 1);
+                try {
+                    if (code == &quot;IMPORT&quot;)
+                        importScripts(payload);
+                    else
+                        testFailed(&quot;Unrecognized message to shared worker: &quot; + event.data);
+                } catch (ex) {
+                    testFailed(&quot;Caught exception in shared worker onmessage: &quot; + ex);
+                }
+            };
+        };
+    }
+    description = function(msg, quiet) {
+        workerPort.postMessage('DESC:' + msg);
+    }
+    testFailed = function(msg) {
+        workerPort.postMessage('FAIL:' + msg);
+    }
+    testPassed = function(msg) {
+        workerPort.postMessage('PASS:' + msg);
+    }
+    finishJSTest = function() {
+        workerPort.postMessage('DONE:');
+    }
+    debug = function(msg) {
+        workerPort.postMessage(msg);
+    }
+}
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesjsteststylecss"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/js-test-style.css (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/js-test-style.css                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/js-test-style.css        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+.pass {
+    font-weight: bold;
+    color: green;
+}
+.fail {
+    font-weight: bold;
+    color: red;
+}
+#console {
+    white-space: pre-wrap;
+    font-family: monospace;
+}
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesjson2es5compatjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/json2-es5-compat.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/json2-es5-compat.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/json2-es5-compat.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,477 @@
</span><ins>+/*
+    http://www.JSON.org/json2.js
+    2009-04-16
+
+    Public Domain.
+
+    NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
+
+    See http://www.JSON.org/js.html
+
+    This file creates a global JSON object containing two methods: stringify
+    and parse.
+
+        JSON.stringify(value, replacer, space)
+            value       any JavaScript value, usually an object or array.
+
+            replacer    an optional parameter that determines how object
+                        values are stringified for objects. It can be a
+                        function or an array of strings.
+
+            space       an optional parameter that specifies the indentation
+                        of nested structures. If it is omitted, the text will
+                        be packed without extra whitespace. If it is a number,
+                        it will specify the number of spaces to indent at each
+                        level. If it is a string (such as '\t' or '&amp;nbsp;'),
+                        it contains the characters used to indent at each level.
+
+            This method produces a JSON text from a JavaScript value.
+
+            When an object value is found, if the object contains a toJSON
+            method, its toJSON method will be called and the result will be
+            stringified. A toJSON method does not serialize: it returns the
+            value represented by the name/value pair that should be serialized,
+            or undefined if nothing should be serialized. The toJSON method
+            will be passed the key associated with the value, and this will be
+            bound to the object holding the key.
+
+            For example, this would serialize Dates as ISO strings.
+
+                Date.prototype.toJSON = function (key) {
+                    function f(n) {
+                        // Format integers to have at least two digits.
+                        return n &lt; 10 ? '0' + n : n;
+                    }
+
+                    return this.getUTCFullYear()   + '-' +
+                         f(this.getUTCMonth() + 1) + '-' +
+                         f(this.getUTCDate())      + 'T' +
+                         f(this.getUTCHours())     + ':' +
+                         f(this.getUTCMinutes())   + ':' +
+                         f(this.getUTCSeconds())   + 'Z';
+                };
+
+            You can provide an optional replacer method. It will be passed the
+            key and value of each member, with this bound to the containing
+            object. The value that is returned from your method will be
+            serialized. If your method returns undefined, then the member will
+            be excluded from the serialization.
+
+            If the replacer parameter is an array of strings, then it will be
+            used to select the members to be serialized. It filters the results
+            such that only members with keys listed in the replacer array are
+            stringified.
+
+            Values that do not have JSON representations, such as undefined or
+            functions, will not be serialized. Such values in objects will be
+            dropped; in arrays they will be replaced with null. You can use
+            a replacer function to replace those with JSON values.
+            JSON.stringify(undefined) returns undefined.
+
+            The optional space parameter produces a stringification of the
+            value that is filled with line breaks and indentation to make it
+            easier to read.
+
+            If the space parameter is a non-empty string, then that string will
+            be used for indentation. If the space parameter is a number, then
+            the indentation will be that many spaces.
+
+            Example:
+
+            text = JSON.stringify(['e', {pluribus: 'unum'}]);
+            // text is '[&quot;e&quot;,{&quot;pluribus&quot;:&quot;unum&quot;}]'
+
+
+            text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
+            // text is '[\n\t&quot;e&quot;,\n\t{\n\t\t&quot;pluribus&quot;: &quot;unum&quot;\n\t}\n]'
+
+            text = JSON.stringify([new Date()], function (key, value) {
+                return this[key] instanceof Date ?
+                    'Date(' + this[key] + ')' : value;
+            });
+            // text is '[&quot;Date(---current time---)&quot;]'
+
+
+        JSON.parse(text, reviver)
+            This method parses a JSON text to produce an object or array.
+            It can throw a SyntaxError exception.
+
+            The optional reviver parameter is a function that can filter and
+            transform the results. It receives each of the keys and values,
+            and its return value is used instead of the original value.
+            If it returns what it received, then the structure is not modified.
+            If it returns undefined then the member is deleted.
+
+            Example:
+
+            // Parse the text. Values that look like ISO date strings will
+            // be converted to Date objects.
+
+            myData = JSON.parse(text, function (key, value) {
+                var a;
+                if (typeof value === 'string') {
+                    a =
+/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
+                    if (a) {
+                        return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
+                            +a[5], +a[6]));
+                    }
+                }
+                return value;
+            });
+
+            myData = JSON.parse('[&quot;Date(09/09/2001)&quot;]', function (key, value) {
+                var d;
+                if (typeof value === 'string' &amp;&amp;
+                        value.slice(0, 5) === 'Date(' &amp;&amp;
+                        value.slice(-1) === ')') {
+                    d = new Date(value.slice(5, -1));
+                    if (d) {
+                        return d;
+                    }
+                }
+                return value;
+            });
+
+
+    This is a reference implementation. You are free to copy, modify, or
+    redistribute.
+
+    This code should be minified before deployment.
+    See http://javascript.crockford.com/jsmin.html
+
+    USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
+    NOT CONTROL.
+*/
+
+/*jslint evil: true */
+
+/*global JSON */
+
+/*members &quot;&quot;, &quot;\b&quot;, &quot;\t&quot;, &quot;\n&quot;, &quot;\f&quot;, &quot;\r&quot;, &quot;\&quot;&quot;, JSON, &quot;\\&quot;, apply,
+    call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
+    getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
+    lastIndex, length, parse, prototype, push, replace, slice, stringify,
+    test, toJSON, toString, valueOf
+*/
+
+// Create a JSON object only if one does not already exist. We create the
+// methods in a closure to avoid creating global variables.
+
+if (!this.JSON) {
+    JSON = {};
+}
+(function () {
+
+    function f(n) {
+        // Format integers to have at least two digits.
+        return n &lt; 10 ? '0' + n : n;
+    }
+
+    if (typeof Date.prototype.toJSON !== 'function') {
+
+        Date.prototype.toJSON = function (key) {
+
+            return this.getUTCFullYear()   + '-' +
+                 f(this.getUTCMonth() + 1) + '-' +
+                 f(this.getUTCDate())      + 'T' +
+                 f(this.getUTCHours())     + ':' +
+                 f(this.getUTCMinutes())   + ':' +
+                 f(this.getUTCSeconds())   + 'Z';
+        };
+    }
+
+    var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
+        escapable = /[\\\&quot;\x00-\x1f]/g,
+        gap,
+        indent,
+        meta = {    // table of character substitutions
+            '\b': '\\b',
+            '\t': '\\t',
+            '\n': '\\n',
+            '\f': '\\f',
+            '\r': '\\r',
+            '&quot;' : '\\&quot;',
+            '\\': '\\\\'
+        },
+        rep;
+
+
+    function quote(string) {
+
+// If the string contains no control characters, no quote characters, and no
+// backslash characters, then we can safely slap some quotes around it.
+// Otherwise we must also replace the offending characters with safe escape
+// sequences.
+
+        escapable.lastIndex = 0;
+        return escapable.test(string) ?
+            '&quot;' + string.replace(escapable, function (a) {
+                var c = meta[a];
+                return typeof c === 'string' ? c :
+                    '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
+            }) + '&quot;' :
+            '&quot;' + string + '&quot;';
+    }
+
+
+    function str(key, holder) {
+
+// Produce a string from holder[key].
+
+        var i,          // The loop counter.
+            k,          // The member key.
+            v,          // The member value.
+            length,
+            mind = gap,
+            partial,
+            value = holder[key];
+
+// If the value has a toJSON method, call it to obtain a replacement value.
+
+        if (value &amp;&amp; typeof value === 'object' &amp;&amp;
+                typeof value.toJSON === 'function') {
+            value = value.toJSON(key);
+        }
+
+// If we were called with a replacer function, then call the replacer to
+// obtain a replacement value.
+
+        if (typeof rep === 'function') {
+            value = rep.call(holder, key, value);
+        }
+
+// What happens next depends on the value's type.
+
+        if (value &amp;&amp; ((typeof value) === &quot;object&quot;)) {
+            if (value.constructor === String || value.constructor === Number || value.constructor === Boolean)
+                value = value.valueOf();
+        }
+
+        switch (typeof value) {
+        case 'string':
+            return quote(value);
+
+        case 'number':
+
+// JSON numbers must be finite. Encode non-finite numbers as null.
+
+            return isFinite(value) ? String(value) : 'null';
+
+        case 'boolean':
+        case 'null':
+
+// If the value is a boolean or null, convert it to a string. Note:
+// typeof null does not produce 'null'. The case is included here in
+// the remote chance that this gets fixed someday.
+
+            return String(value);
+
+// If the type is 'object', we might be dealing with an object or an array or
+// null.
+
+        case 'object':
+
+// Due to a specification blunder in ECMAScript, typeof null is 'object',
+// so watch out for that case.
+
+            if (!value) {
+                return 'null';
+            }
+
+// Make an array to hold the partial results of stringifying this object value.
+
+            gap += indent;
+            partial = [];
+
+// Is the value an array?
+
+            if (Object.prototype.toString.apply(value) === '[object Array]') {
+
+// The value is an array. Stringify every element. Use null as a placeholder
+// for non-JSON values.
+
+                length = value.length;
+                for (i = 0; i &lt; length; i += 1) {
+                    partial[i] = str(i, value) || 'null';
+                }
+
+// Join all of the elements together, separated with commas, and wrap them in
+// brackets.
+
+                v = partial.length === 0 ? '[]' :
+                    gap ? '[\n' + gap +
+                            partial.join(',\n' + gap) + '\n' +
+                                mind + ']' :
+                          '[' + partial.join(',') + ']';
+                gap = mind;
+                return v;
+            }
+
+// If the replacer is an array, use it to select the members to be stringified.
+
+            if (rep &amp;&amp; typeof rep === 'object') {
+                length = rep.length;
+                for (i = 0; i &lt; length; i += 1) {
+                    k = rep[i];
+                    if (typeof k === 'string') {
+                        v = str(k, value);
+                        if (v) {
+                            partial.push(quote(k) + (gap ? ': ' : ':') + v);
+                        }
+                    }
+                }
+            } else {
+
+// Otherwise, iterate through all of the keys in the object.
+
+                for (k in value) {
+                    if (Object.hasOwnProperty.call(value, k)) {
+                        v = str(k, value);
+                        if (v) {
+                            partial.push(quote(k) + (gap ? ': ' : ':') + v);
+                        }
+                    }
+                }
+            }
+
+// Join all of the member texts together, separated with commas,
+// and wrap them in braces.
+
+            v = partial.length === 0 ? '{}' :
+                gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' +
+                        mind + '}' : '{' + partial.join(',') + '}';
+            gap = mind;
+            return v;
+        }
+    }
+
+// If the JSON object does not yet have a stringify method, give it one.
+
+    if (typeof JSON.stringify !== 'function') {
+        JSON.stringify = function (value, replacer, space) {
+
+// The stringify method takes a value and an optional replacer, and an optional
+// space parameter, and returns a JSON text. The replacer can be a function
+// that can replace values, or an array of strings that will select the keys.
+// A default replacer method can be provided. Use of the space parameter can
+// produce text that is more easily readable.
+
+            var i;
+            gap = '';
+            indent = '';
+
+// If the space parameter is a number, make an indent string containing that
+// many spaces.
+
+            if (typeof space === 'number') {
+                for (i = 0; i &lt; space; i += 1) {
+                    indent += ' ';
+                }
+
+// If the space parameter is a string, it will be used as the indent string.
+
+            } else if (typeof space === 'string') {
+                indent = space;
+            }
+
+// If there is a replacer, it must be a function or an array.
+// Otherwise, throw an error.
+
+            rep = replacer;
+            if (replacer &amp;&amp; typeof replacer !== 'function' &amp;&amp;
+                    (typeof replacer !== 'object' ||
+                     typeof replacer.length !== 'number')) {
+                throw new Error('JSON.stringify');
+            }
+
+// Make a fake root object containing our value under the key of ''.
+// Return the result of stringifying the value.
+
+            return str('', {'': value});
+        };
+    }
+
+
+// If the JSON object does not yet have a parse method, give it one.
+
+    if (typeof JSON.parse !== 'function') {
+        JSON.parse = function (text, reviver) {
+
+// The parse method takes a text and an optional reviver function, and returns
+// a JavaScript value if the text is a valid JSON text.
+
+            var j;
+
+            function walk(holder, key) {
+
+// The walk method is used to recursively walk the resulting structure so
+// that modifications can be made.
+
+                var k, v, value = holder[key];
+                if (value &amp;&amp; typeof value === 'object') {
+                    for (k in value) {
+                        if (Object.hasOwnProperty.call(value, k)) {
+                            v = walk(value, k);
+                            if (v !== undefined) {
+                                value[k] = v;
+                            } else {
+                                delete value[k];
+                            }
+                        }
+                    }
+                }
+                return reviver.call(holder, key, value);
+            }
+
+
+// Parsing happens in four stages. In the first stage, we replace certain
+// Unicode characters with escape sequences. JavaScript handles many characters
+// incorrectly, either silently deleting them, or treating them as line endings.
+
+            cx.lastIndex = 0;
+            if (cx.test(text)) {
+                text = text.replace(cx, function (a) {
+                    return '\\u' +
+                        ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
+                });
+            }
+
+// In the second stage, we run the text against regular expressions that look
+// for non-JSON patterns. We are especially concerned with '()' and 'new'
+// because they can cause invocation, and '=' because it can cause mutation.
+// But just to be safe, we want to reject all unexpected forms.
+
+// We split the second stage into 4 regexp operations in order to work around
+// crippling inefficiencies in IE's and Safari's regexp engines. First we
+// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
+// replace all simple value tokens with ']' characters. Third, we delete all
+// open brackets that follow a colon or comma or that begin the text. Finally,
+// we look to see that the remaining characters are only whitespace or ']' or
+// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
+
+            if (/^[\],:{}\s]*$/.
+test(text.replace(/\\(?:[&quot;\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@').
+replace(/&quot;[^&quot;\\\n\r]*&quot;|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').
+replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
+
+// In the third stage we use the eval function to compile the text into a
+// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
+// in JavaScript: it can begin a block or an object literal. We wrap the text
+// in parens to eliminate the ambiguity.
+
+                j = eval('(' + text + ')');
+
+// In the optional fourth stage, we recursively walk the new structure, passing
+// each name/value pair to a reviver function for possible transformation.
+
+                return typeof reviver === 'function' ?
+                    walk({'': j}, '') : j;
+            }
+
+// If the text is not JSON parseable, then a SyntaxError is thrown.
+
+            throw new SyntaxError('JSON.parse');
+        };
+    }
+}());
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourceslexicallookupinfunctionconstructorchildhtml"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/lexical-lookup-in-function-constructor-child.html (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/lexical-lookup-in-function-constructor-child.html                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/lexical-lookup-in-function-constructor-child.html        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+&lt;script&gt;
+message = &quot;SUCCESS&quot;;
+function doTest(para) {
+    var f = new Function('para', 'para.innerHTML = message;');
+    f(para);
+}
+&lt;/script&gt;
+&lt;body&gt;
+&lt;/body&gt;
+
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesparseerrorexternalscriptinevaljs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/parse-error-external-script-in-eval.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/parse-error-external-script-in-eval.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/parse-error-external-script-in-eval.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+eval(&quot;\n\nsyntax error&quot;);
+
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesparseerrorexternalscriptinnewFunctionjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/parse-error-external-script-in-new-Function.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/parse-error-external-script-in-new-Function.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/parse-error-external-script-in-new-Function.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+var f = new Function(&quot;x&quot;, &quot;\n\nsyntax error&quot;);
+
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesscriptlinenumberjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/script-line-number.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/script-line-number.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/script-line-number.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+description(
+&quot;This test checks that line numbers are correctly reported for both inline scripts and inline event handlers.&quot;
+);
+
+function getLineFromError(e)
+{
+    // JSC
+    if (e.line)
+        return e.line;
+
+    // V8
+    if (e.stack) {
+        // ErrorName: ErrorDescription at FileName:LineNumber:ColumnNumber
+        parts = e.stack.split(&quot;:&quot;);
+        return parts[parts.length - 2];
+    }
+
+    return -1;
+}
+
+function assertErrorOnLine(error, expectedLine)
+{
+    shouldBe(stringify(getLineFromError(error)), stringify(expectedLine));
+}
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesselectoptionsremovejs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/select-options-remove.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/select-options-remove.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/select-options-remove.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,230 @@
</span><ins>+description(&quot;This test checks the behavior of the remove() method on the select.options object.&quot;);
+
+var select1 = document.getElementById(&quot;select1&quot;);
+var value;
+
+debug(&quot;1.1 Remove (object) from empty Options&quot;);
+value = document.createElement(&quot;DIV&quot;);
+shouldBe(&quot;select1.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.2 Remove (string) from empty Options&quot;);
+value = &quot;o&quot;;
+shouldBe(&quot;select1.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.3 Remove (float) from empty Options&quot;);
+value = 3.14;
+shouldBe(&quot;select1.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.4 Remove (boolean) from empty Options&quot;);
+value = true;
+shouldBe(&quot;select1.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.5 Remove (undefined) from empty Options&quot;);
+value = undefined;
+shouldBe(&quot;select1.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.6 Remove (null) from empty Options&quot;);
+value = null;
+shouldBe(&quot;select1.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.7 Remove (negative infinity) from empty Options&quot;);
+value = -1/0;
+shouldBe(&quot;select1.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.8 Remove (NaN) from empty Options&quot;);
+value = 0/0;
+shouldBe(&quot;select1.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.9 Remove (positive infinity) from empty Options&quot;);
+value = 1/0;
+shouldBe(&quot;select1.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.10 Remove no args from empty Options&quot;);
+shouldBe(&quot;select1.options.remove()&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.11 Remove too many args from empty Options&quot;);
+shouldBe(&quot;select1.options.remove(0, 'foo')&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.12 Remove invalid index -2 from empty Options&quot;);
+shouldBe(&quot;select1.options.remove(-2)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.13 Remove invalid index -1 from empty Options&quot;);
+shouldBe(&quot;select1.options.remove(-1)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.14 Remove index 0 from empty Options&quot;);
+shouldBe(&quot;select1.options.remove(0)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;1.15 Remove index 1 from empty Options&quot;);
+shouldBe(&quot;select1.options.remove(1)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select1.options.length&quot;, &quot;0&quot;);
+shouldBe(&quot;select1.selectedIndex&quot;, &quot;-1&quot;);
+debug(&quot;&quot;);
+
+// ------------------------------------------------
+
+i = 0;
+var select2 = document.getElementById(&quot;select2&quot;);
+
+debug(&quot;2.1 Remove (object) from non-empty Options&quot;);
+value = document.createElement(&quot;DIV&quot;);
+shouldBe(&quot;select2.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;15&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;13&quot;);
+shouldBe(&quot;select2.options[0].value&quot;, &quot;'B'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.2 Remove (string) from non-empty Options&quot;);
+value = &quot;o&quot;;
+shouldBe(&quot;select2.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;14&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;12&quot;);
+shouldBe(&quot;select2.options[0].value&quot;, &quot;'C'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.3 Remove (float) from non-empty Options&quot;);
+value = 3.14;
+shouldBe(&quot;select2.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;13&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;11&quot;);
+shouldBe(&quot;select2.options[3].value&quot;, &quot;'G'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.4 Remove (boolean true) from non-empty Options&quot;);
+value = true;
+shouldBe(&quot;select2.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;12&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;10&quot;);
+shouldBe(&quot;select2.options[1].value&quot;, &quot;'E'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.5 Remove (boolean false) from non-empty Options&quot;);
+value = false;
+shouldBe(&quot;select2.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;11&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;9&quot;);
+shouldBe(&quot;select2.options[1].value&quot;, &quot;'G'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.6 Remove (undefined) from non-empty Options&quot;);
+value = undefined;
+shouldBe(&quot;select2.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;10&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;8&quot;);
+shouldBe(&quot;select2.options[0].value&quot;, &quot;'G'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.7 Remove (null) from non-empty Options&quot;);
+value = null;
+shouldBe(&quot;select2.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;9&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;7&quot;);
+shouldBe(&quot;select2.options[0].value&quot;, &quot;'H'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.8 Remove (negative infinity) from non-empty Options&quot;);
+value = -1/0;
+shouldBe(&quot;select2.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;8&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;6&quot;);
+shouldBe(&quot;select2.options[0].value&quot;, &quot;'I'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.9 Remove (NaN) from non-empty Options&quot;);
+value = 0/0;
+shouldBe(&quot;select2.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;7&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;5&quot;);
+shouldBe(&quot;select2.options[0].value&quot;, &quot;'J'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.10 Remove (positive infinity) from non-empty Options&quot;);
+value = 1/0;
+shouldBe(&quot;select2.options.remove(value)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;6&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;4&quot;);
+shouldBe(&quot;select2.options[0].value&quot;, &quot;'K'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.11 Remove no args from non-empty Options&quot;);
+shouldBe(&quot;select2.options.remove()&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;5&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;3&quot;);
+shouldBe(&quot;select2.options[0].value&quot;, &quot;'L'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.12 Remove too many args from non-empty Options&quot;);
+shouldBe(&quot;select2.options.remove(0, 'foo')&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;4&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;2&quot;);
+shouldBe(&quot;select2.options[0].value&quot;, &quot;'M'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.13 Remove invalid index -2 from non-empty Options&quot;);
+shouldBe(&quot;select2.options.remove(-2)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;4&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;2&quot;);
+shouldBe(&quot;select2.options[2].value&quot;, &quot;'O'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.14 Remove invalid index -1 from non-empty Options&quot;);
+shouldBe(&quot;select2.options.remove(-1)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;4&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;2&quot;);
+shouldBe(&quot;select2.options[3].value&quot;, &quot;'P'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.15 Remove index 0 from non-empty Options&quot;);
+shouldBe(&quot;select2.options.remove(0)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;3&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;1&quot;);
+shouldBe(&quot;select2.options[0].value&quot;, &quot;'N'&quot;);
+debug(&quot;&quot;);
+
+debug(&quot;2.16 Remove index 1 from non-empty Options&quot;);
+shouldBe(&quot;select2.options.remove(1)&quot;, &quot;undefined&quot;);
+shouldBe(&quot;select2.options.length&quot;, &quot;2&quot;);
+shouldBe(&quot;select2.selectedIndex&quot;, &quot;0&quot;);
+shouldBe(&quot;select2.options[1].value&quot;, &quot;'P'&quot;);
+debug(&quot;&quot;);
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesstandalonepostjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/standalone-post.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/standalone-post.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/standalone-post.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+wasPostTestScriptParsed = true;
+
+finishJSTest();
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesstandaloneprejs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/standalone-pre.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/standalone-pre.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/standalone-pre.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,168 @@
</span><ins>+var wasPostTestScriptParsed = false;
+var errorMessage;
+
+function description(msg)
+{
+    print(msg);
+    print(&quot;\nOn success, you will see a series of \&quot;PASS\&quot; messages, followed by \&quot;TEST COMPLETE\&quot;.\n&quot;);
+    print();
+}
+
+function debug(msg)
+{
+    print(msg);
+}
+
+function escapeString(text)
+{
+    return text.replace(/\0/g, &quot;&quot;);
+}
+
+function testPassed(msg)
+{
+    print(&quot;PASS&quot;, escapeString(msg));
+}
+
+function testFailed(msg)
+{
+    errorMessage = msg;
+    print(&quot;FAIL&quot;, escapeString(msg));
+}
+
+function areArraysEqual(_a, _b)
+{
+    if (Object.prototype.toString.call(_a) != Object.prototype.toString.call([]))
+        return false;
+    if (_a.length !== _b.length)
+        return false;
+    for (var i = 0; i &lt; _a.length; i++)
+        if (_a[i] !== _b[i])
+            return false;
+    return true;
+}
+
+function isMinusZero(n)
+{
+    // the only way to tell 0 from -0 in JS is the fact that 1/-0 is
+    // -Infinity instead of Infinity
+    return n === 0 &amp;&amp; 1/n &lt; 0;
+}
+
+function isResultCorrect(_actual, _expected)
+{
+    if (_expected === 0)
+        return _actual === _expected &amp;&amp; (1/_actual) === (1/_expected);
+    if (_actual === _expected)
+        return true;
+    if (typeof(_expected) == &quot;number&quot; &amp;&amp; isNaN(_expected))
+        return typeof(_actual) == &quot;number&quot; &amp;&amp; isNaN(_actual);
+    if (Object.prototype.toString.call(_expected) == Object.prototype.toString.call([]))
+        return areArraysEqual(_actual, _expected);
+    return false;
+}
+
+function stringify(v)
+{
+    if (v === 0 &amp;&amp; 1/v &lt; 0)
+        return &quot;-0&quot;;
+    else return &quot;&quot; + v;
+}
+
+function shouldBe(_a, _b)
+{
+  if (typeof _a != &quot;string&quot; || typeof _b != &quot;string&quot;)
+    debug(&quot;WARN: shouldBe() expects string arguments&quot;);
+  var exception;
+  var _av;
+  try {
+     _av = eval(_a);
+  } catch (e) {
+     exception = e;
+  }
+  var _bv = eval(_b);
+
+  if (exception)
+    testFailed(_a + &quot; should be &quot; + _bv + &quot;. Threw exception &quot; + exception);
+  else if (isResultCorrect(_av, _bv))
+    testPassed(_a + &quot; is &quot; + _b);
+  else if (typeof(_av) == typeof(_bv))
+    testFailed(_a + &quot; should be &quot; + _bv + &quot;. Was &quot; + stringify(_av) + &quot;.&quot;);
+  else
+    testFailed(_a + &quot; should be &quot; + _bv + &quot; (of type &quot; + typeof _bv + &quot;). Was &quot; + _av + &quot; (of type &quot; + typeof _av + &quot;).&quot;);
+}
+
+function shouldBeTrue(_a) { shouldBe(_a, &quot;true&quot;); }
+function shouldBeFalse(_a) { shouldBe(_a, &quot;false&quot;); }
+function shouldBeNaN(_a) { shouldBe(_a, &quot;NaN&quot;); }
+function shouldBeNull(_a) { shouldBe(_a, &quot;null&quot;); }
+
+function shouldBeEqualToString(a, b)
+{
+  if (typeof a !== &quot;string&quot; || typeof b !== &quot;string&quot;)
+    debug(&quot;WARN: shouldBeEqualToString() expects string arguments&quot;);
+  var unevaledString = JSON.stringify(b);
+  shouldBe(a, unevaledString);
+}
+
+function shouldBeUndefined(_a)
+{
+  var exception;
+  var _av;
+  try {
+     _av = eval(_a);
+  } catch (e) {
+     exception = e;
+  }
+
+  if (exception)
+    testFailed(_a + &quot; should be undefined. Threw exception &quot; + exception);
+  else if (typeof _av == &quot;undefined&quot;)
+    testPassed(_a + &quot; is undefined.&quot;);
+  else
+    testFailed(_a + &quot; should be undefined. Was &quot; + _av);
+}
+
+
+function shouldThrow(_a, _e)
+{
+  var exception;
+  var _av;
+  try {
+     _av = eval(_a);
+  } catch (e) {
+     exception = e;
+  }
+
+  var _ev;
+  if (_e)
+      _ev =  eval(_e);
+
+  if (exception) {
+    if (typeof _e == &quot;undefined&quot; || exception == _ev)
+      testPassed(_a + &quot; threw exception &quot; + exception + &quot;.&quot;);
+    else
+      testFailed(_a + &quot; should throw &quot; + (typeof _e == &quot;undefined&quot; ? &quot;an exception&quot; : _ev) + &quot;. Threw exception &quot; + exception + &quot;.&quot;);
+  } else if (typeof _av == &quot;undefined&quot;)
+    testFailed(_a + &quot; should throw &quot; + (typeof _e == &quot;undefined&quot; ? &quot;an exception&quot; : _ev) + &quot;. Was undefined.&quot;);
+  else
+    testFailed(_a + &quot; should throw &quot; + (typeof _e == &quot;undefined&quot; ? &quot;an exception&quot; : _ev) + &quot;. Was &quot; + _av + &quot;.&quot;);
+}
+
+function isSuccessfullyParsed()
+{
+    // FIXME: Remove this and only report unexpected syntax errors.
+    if (!errorMessage)
+        successfullyParsed = true;
+    shouldBeTrue(&quot;successfullyParsed&quot;);
+    debug(&quot;\nTEST COMPLETE\n&quot;);
+}
+
+// It's possible for an async test to call finishJSTest() before js-test-post.js
+// has been parsed.
+function finishJSTest()
+{
+    wasFinishJSTestCalled = true;
+    if (!wasPostTestScriptParsed)
+        return;
+    isSuccessfullyParsed();
+}
</ins></span></pre></div>
<a id="branchessafari53775branchLayoutTestsjsresourcesstringconcatenateoutofmemoryjs"></a>
<div class="addfile"><h4>Added: branches/safari-537.75-branch/LayoutTests/js/resources/string-concatenate-outofmemory.js (0 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/LayoutTests/js/resources/string-concatenate-outofmemory.js                                (rev 0)
+++ branches/safari-537.75-branch/LayoutTests/js/resources/string-concatenate-outofmemory.js        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+description(
+'This test checks if repeated string concatenation causes an exception (and not a crash). From WebKit Bug &lt;a href=&quot;http://bugs.webkit.org/show_bug.cgi?id=11131&quot;&gt;Repeated string concatenation results in OOM crash&lt;/a&gt;.'
+);
+
+shouldThrow('s = &quot;a&quot;; while (1) { s += s; }', '&quot;Error: Out of memory&quot;'); // Expand at end of string
+shouldThrow('s = &quot;a&quot;; while (1) { s += (&quot;a&quot; + s); }', '&quot;Error: Out of memory&quot;'); // Expand at beginning of string
+shouldThrow('s = &quot;a&quot;; while (1) { s = [s, s].join(); }', '&quot;Error: Out of memory&quot;'); // Expand using UString::append.
+
+debug('');
+debug(
+'We also verify that the the string is stil functional after the out of memory exception is raised.  In &lt;a href=&quot;rdar://problem/5352887&quot;&gt;rdar://problem/5352887&lt;/a&gt;, accessing the string after the exception would crash.'
+);
+
+function ensureStringIsUsable(testName, stringName, str) {
+    str[str.length - 1];
+    try { [str, str].join(str); } catch (o) { }
+    try { &quot;a&quot; + str; } catch (o) { }
+    try { str + &quot;a&quot;; } catch (o) { }
+    debug('PASS: String ' + stringName + ' was functional after ' + testName + ' raised out of memory exception.');
+}
+
+var s = &quot;a&quot;;
+try {
+    while (1)
+        s += s; // This will expand the string at the end using UString::expandCapacity
+} catch (o) {
+    ensureStringIsUsable('expandCapacity', 's', s);
+}
+
+s = &quot;a&quot;;
+var t = &quot;&quot;;
+try {
+    while (1) {
+        t = &quot;a&quot; + s;
+        s += t; // This will expand the string at the beginning using UString::expandPreCapacity
+    }
+} catch (o) {
+    // Ensure both strings involved are unharmed
+    ensureStringIsUsable('expandPreCapacity', 's', s);
+    ensureStringIsUsable('expandPreCapacity', 't', t);
+}
+delete t;
+
+s = &quot;a&quot;;
+try {
+    while (1)
+        s = [s, s].join(); // This will expand the string using UString::append.
+} catch (o) {
+    ensureStringIsUsable('append', 's', s);
+}
</ins></span></pre></div>
<a id="branchessafari53775branchSourceJavaScriptCoreConfigurationsVersionxcconfig"></a>
<div class="modfile"><h4>Modified: branches/safari-537.75-branch/Source/JavaScriptCore/Configurations/Version.xcconfig (166320 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/Source/JavaScriptCore/Configurations/Version.xcconfig        2014-03-26 22:00:01 UTC (rev 166320)
+++ branches/safari-537.75-branch/Source/JavaScriptCore/Configurations/Version.xcconfig        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> MAJOR_VERSION = 537;
</span><span class="cx"> MINOR_VERSION = 75;
</span><del>-TINY_VERSION = 14;
</del><ins>+TINY_VERSION = 15;
</ins><span class="cx"> FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION);
</span><span class="cx"> 
</span><span class="cx"> // The bundle version and short version string are set based on the current build configuration, see below.
</span></span></pre></div>
<a id="branchessafari53775branchSourceWebCoreConfigurationsVersionxcconfig"></a>
<div class="modfile"><h4>Modified: branches/safari-537.75-branch/Source/WebCore/Configurations/Version.xcconfig (166320 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/Source/WebCore/Configurations/Version.xcconfig        2014-03-26 22:00:01 UTC (rev 166320)
+++ branches/safari-537.75-branch/Source/WebCore/Configurations/Version.xcconfig        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> MAJOR_VERSION = 537;
</span><span class="cx"> MINOR_VERSION = 75;
</span><del>-TINY_VERSION = 14;
</del><ins>+TINY_VERSION = 15;
</ins><span class="cx"> FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION);
</span><span class="cx"> 
</span><span class="cx"> // The bundle version and short version string are set based on the current build configuration, see below.
</span></span></pre></div>
<a id="branchessafari53775branchSourceWebInspectorUIConfigurationsVersionxcconfig"></a>
<div class="modfile"><h4>Modified: branches/safari-537.75-branch/Source/WebInspectorUI/Configurations/Version.xcconfig (166320 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/Source/WebInspectorUI/Configurations/Version.xcconfig        2014-03-26 22:00:01 UTC (rev 166320)
+++ branches/safari-537.75-branch/Source/WebInspectorUI/Configurations/Version.xcconfig        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> MAJOR_VERSION = 537;
</span><span class="cx"> MINOR_VERSION = 75;
</span><del>-TINY_VERSION = 14;
</del><ins>+TINY_VERSION = 15;
</ins><span class="cx"> FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION);
</span><span class="cx"> 
</span><span class="cx"> // The system version prefix is based on the current system version.
</span></span></pre></div>
<a id="branchessafari53775branchSourceWebKitmacConfigurationsVersionxcconfig"></a>
<div class="modfile"><h4>Modified: branches/safari-537.75-branch/Source/WebKit/mac/Configurations/Version.xcconfig (166320 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/Source/WebKit/mac/Configurations/Version.xcconfig        2014-03-26 22:00:01 UTC (rev 166320)
+++ branches/safari-537.75-branch/Source/WebKit/mac/Configurations/Version.xcconfig        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> MAJOR_VERSION = 537;
</span><span class="cx"> MINOR_VERSION = 75;
</span><del>-TINY_VERSION = 14;
</del><ins>+TINY_VERSION = 15;
</ins><span class="cx"> FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION);
</span><span class="cx"> 
</span><span class="cx"> // The bundle version and short version string are set based on the current build configuration, see below.
</span></span></pre></div>
<a id="branchessafari53775branchSourceWebKit2ConfigurationsVersionxcconfig"></a>
<div class="modfile"><h4>Modified: branches/safari-537.75-branch/Source/WebKit2/Configurations/Version.xcconfig (166320 => 166321)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-537.75-branch/Source/WebKit2/Configurations/Version.xcconfig        2014-03-26 22:00:01 UTC (rev 166320)
+++ branches/safari-537.75-branch/Source/WebKit2/Configurations/Version.xcconfig        2014-03-26 22:02:26 UTC (rev 166321)
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> MAJOR_VERSION = 537;
</span><span class="cx"> MINOR_VERSION = 75;
</span><del>-TINY_VERSION = 14;
</del><ins>+TINY_VERSION = 15;
</ins><span class="cx"> FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION);
</span><span class="cx"> 
</span><span class="cx"> // The bundle version and short version string are set based on the current build configuration, see below.
</span></span></pre>
</div>
</div>

</body>
</html>