<!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>[167369] trunk/LayoutTests</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/167369">167369</a></dd>
<dt>Author</dt> <dd>ddkilzer@apple.com</dd>
<dt>Date</dt> <dd>2014-04-16 11:51:49 -0700 (Wed, 16 Apr 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Rename LayoutTests/platformm/iphone-simulator =&gt; ios-sim

* platform/ios-sim: Renamed from LayoutTests/platform/iphone-simulator.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/LayoutTests/platform/ios-sim/</li>
<li>trunk/LayoutTests/platform/ios-sim/accessibility/</li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityaccessibilityariatablechildrenexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-aria-table-children-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityaccessibilityariatablechildrenhtml">trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-aria-table-children.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityaccessibilitycrashinaxcontainerexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-crash-in-axcontainer-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityaccessibilitycrashinaxcontainerhtml">trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-crash-in-axcontainer.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityaccessibilityhintexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-hint-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityaccessibilityhinthtml">trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-hint.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityarialabelwithinternaltextexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/aria-label-with-internal-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityarialabelwithinternaltexthtml">trunk/LayoutTests/platform/ios-sim/accessibility/aria-label-with-internal-text.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityariapressedstateexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/aria-pressed-state-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityariapressedstatehtml">trunk/LayoutTests/platform/ios-sim/accessibility/aria-pressed-state.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitycenterpointexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/centerpoint-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitycenterpointhtml">trunk/LayoutTests/platform/ios-sim/accessibility/centerpoint.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitydomfocusfiresoncorrectelementexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/dom-focus-fires-on-correct-element-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitydomfocusfiresoncorrectelementhtml">trunk/LayoutTests/platform/ios-sim/accessibility/dom-focus-fires-on-correct-element.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityelementpathsexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/element-paths-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityelementpathshtml">trunk/LayoutTests/platform/ios-sim/accessibility/element-paths.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityfileuploadbuttonexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/file-upload-button-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityfileuploadbuttonhtml">trunk/LayoutTests/platform/ios-sim/accessibility/file-upload-button.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityfocuschangenotificationsexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/focus-change-notifications-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityfocuschangenotificationshtml">trunk/LayoutTests/platform/ios-sim/accessibility/focus-change-notifications.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityheaderelementsexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/header-elements-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityheaderelementshtml">trunk/LayoutTests/platform/ios-sim/accessibility/header-elements.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityidentifierexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/identifier-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityidentifierhtml">trunk/LayoutTests/platform/ios-sim/accessibility/identifier.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityinternallinkexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/internal-link-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityinternallinkhtml">trunk/LayoutTests/platform/ios-sim/accessibility/internal-link.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitylandmarktypeexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/landmark-type-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitylandmarktypehtml">trunk/LayoutTests/platform/ios-sim/accessibility/landmark-type.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitylinkwithimagestextexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/link-with-images-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitylinkwithimagestexthtml">trunk/LayoutTests/platform/ios-sim/accessibility/link-with-images-text.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitylinkwithonlyimageexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/link-with-only-image-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitylinkwithonlyimagehtml">trunk/LayoutTests/platform/ios-sim/accessibility/link-with-only-image.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitymathexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/math-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitymathhtml">trunk/LayoutTests/platform/ios-sim/accessibility/math.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitymixedcheckboxesexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/mixed-checkboxes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitymixedcheckboxeshtml">trunk/LayoutTests/platform/ios-sim/accessibility/mixed-checkboxes.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitynochildlinkheaderexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/no-child-link-header-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitynochildlinkheaderhtml">trunk/LayoutTests/platform/ios-sim/accessibility/no-child-link-header.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitynoncontiguouslinkexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/non-contiguous-link-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitynoncontiguouslinkhtml">trunk/LayoutTests/platform/ios-sim/accessibility/non-contiguous-link.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitypasswordvalueexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/password-value-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitypasswordvaluehtml">trunk/LayoutTests/platform/ios-sim/accessibility/password-value.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityplaceholdervalueexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/placeholder-value-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityplaceholdervaluehtml">trunk/LayoutTests/platform/ios-sim/accessibility/placeholder-value.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitypopupbuttonvaluelabelexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/popup-button-value-label-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitypopupbuttonvaluelabelhtml">trunk/LayoutTests/platform/ios-sim/accessibility/popup-button-value-label.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityprogressbarexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/progressbar-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityprogressbarhtml">trunk/LayoutTests/platform/ios-sim/accessibility/progressbar.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityradiobuttonexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/radio-button-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityradiobuttonhtml">trunk/LayoutTests/platform/ios-sim/accessibility/radio-button.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitysecuretextfieldexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/secure-text-field-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitysecuretextfieldhtml">trunk/LayoutTests/platform/ios-sim/accessibility/secure-text-field.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityselectedbuttonsexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/selected-buttons-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityselectedbuttonshtml">trunk/LayoutTests/platform/ios-sim/accessibility/selected-buttons.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityselectedtextexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/selected-text-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityselectedtexthtml">trunk/LayoutTests/platform/ios-sim/accessibility/selected-text.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitysvggroupelementwithtitleexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/svg-group-element-with-title-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitysvggroupelementwithtitlehtml">trunk/LayoutTests/platform/ios-sim/accessibility/svg-group-element-with-title.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitysvgpathcrashexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/svg-path-crash-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitysvgpathcrashhtml">trunk/LayoutTests/platform/ios-sim/accessibility/svg-path-crash.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytabroleexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/tab-role-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytabrolehtml">trunk/LayoutTests/platform/ios-sim/accessibility/tab-role.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytablecellforrowcolexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-for-row-col-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytablecellforrowcolhtml">trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-for-row-col.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytablecellrangesexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-ranges-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytablecellrangeshtml">trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-ranges.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytableslistsexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/tables-lists-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytableslistshtml">trunk/LayoutTests/platform/ios-sim/accessibility/tables-lists.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytextlinenoignoredelementsexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/text-line-no-ignored-elements-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytextlinenoignoredelementshtml">trunk/LayoutTests/platform/ios-sim/accessibility/text-line-no-ignored-elements.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytextmarkerlistitemexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-list-item-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytextmarkerlistitemhtml">trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-list-item.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytextmarkervalidationexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-validation-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytextmarkervalidationhtml">trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-validation.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytextroleexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/text-role-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytextrolehtml">trunk/LayoutTests/platform/ios-sim/accessibility/text-role.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytextfieldinaxvalueexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/textfield-in-axvalue-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilitytextfieldinaxvaluehtml">trunk/LayoutTests/platform/ios-sim/accessibility/textfield-in-axvalue.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityurltestexpectedtxt">trunk/LayoutTests/platform/ios-sim/accessibility/url-test-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimaccessibilityurltesthtml">trunk/LayoutTests/platform/ios-sim/accessibility/url-test.html</a></li>
<li>trunk/LayoutTests/platform/ios-sim/iphone/</li>
<li><a href="#trunkLayoutTestsplatformiossimiphonegetComputedStyletextdecorationletterpressexpectedtxt">trunk/LayoutTests/platform/ios-sim/iphone/getComputedStyle-text-decoration-letterpress-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimiphonegetComputedStyletextdecorationletterpresshtml">trunk/LayoutTests/platform/ios-sim/iphone/getComputedStyle-text-decoration-letterpress.html</a></li>
<li>trunk/LayoutTests/platform/ios-sim/iphone/resources/</li>
<li><a href="#trunkLayoutTestsplatformiossimiphoneresourcesgetComputedStyletextdecorationletterpressjs">trunk/LayoutTests/platform/ios-sim/iphone/resources/getComputedStyle-text-decoration-letterpress.js</a></li>
<li>trunk/LayoutTests/platform/ios-sim/text-autosizing/</li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizinganonymousblockexpectedtxt">trunk/LayoutTests/platform/ios-sim/text-autosizing/anonymous-block-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizinganonymousblockhtml">trunk/LayoutTests/platform/ios-sim/text-autosizing/anonymous-block.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingcontenteditableexpectedtxt">trunk/LayoutTests/platform/ios-sim/text-autosizing/contenteditable-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingcontenteditablehtml">trunk/LayoutTests/platform/ios-sim/text-autosizing/contenteditable.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingfirstletterexpectedtxt">trunk/LayoutTests/platform/ios-sim/text-autosizing/first-letter-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingfirstletterhtml">trunk/LayoutTests/platform/ios-sim/text-autosizing/first-letter.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingfontfamilycaseinsensitiveexpectedtxt">trunk/LayoutTests/platform/ios-sim/text-autosizing/font-family-case-insensitive-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingfontfamilycaseinsensitivehtml">trunk/LayoutTests/platform/ios-sim/text-autosizing/font-family-case-insensitive.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizinglistsexpectedtxt">trunk/LayoutTests/platform/ios-sim/text-autosizing/lists-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizinglistshtml">trunk/LayoutTests/platform/ios-sim/text-autosizing/lists.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingoverflowexpectedtxt">trunk/LayoutTests/platform/ios-sim/text-autosizing/overflow-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingoverflowhtml">trunk/LayoutTests/platform/ios-sim/text-autosizing/overflow.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingpercentadjustlengthlineheightexpectedtxt">trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-length-line-height-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingpercentadjustlengthlineheighthtml">trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-length-line-height.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingpercentadjustnumberlineheightexpectedtxt">trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-number-line-height-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingpercentadjustnumberlineheighthtml">trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-number-line-height.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingpercentadjustpercentlineheightexpectedtxt">trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-percent-line-height-expected.txt</a></li>
<li><a href="#trunkLayoutTestsplatformiossimtextautosizingpercentadjustpercentlineheighthtml">trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-percent-line-height.html</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li>trunk/LayoutTests/platform/iphone-simulator/</li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (167368 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-04-16 18:49:39 UTC (rev 167368)
+++ trunk/LayoutTests/ChangeLog        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -1,3 +1,9 @@
</span><ins>+2014-04-16  David Kilzer  &lt;ddkilzer@apple.com&gt;
+
+        Rename LayoutTests/platformm/iphone-simulator =&gt; ios-sim
+
+        * platform/ios-sim: Renamed from LayoutTests/platform/iphone-simulator.
+
</ins><span class="cx"> 2014-04-16  Alexey Proskuryakov  &lt;ap@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         DataTransfer should cache its FileList
</span></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityaccessibilityariatablechildrenexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityaccessibilityariatablechildrenexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-aria-table-children-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/accessibility-aria-table-children-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-aria-table-children-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-aria-table-children-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+test1
+test2
+test3
+test1
+test2
+test3
+This makes sure that if an ARIA table is used, the table's children does NOT include the column headers.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS grid.childrenCount is 1
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityaccessibilityariatablechildrenhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityaccessibilityariatablechildrenhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-aria-table-children.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/accessibility-aria-table-children.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-aria-table-children.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-aria-table-children.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;div role=&quot;grid&quot; tabindex=&quot;0&quot; id=&quot;grid&quot;&gt;
+
+&lt;div role=&quot;columnheader&quot; aria-label=&quot;test1&quot;&gt;test1&lt;/div&gt;
+&lt;div role=&quot;columnheader&quot; aria-label=&quot;test2&quot;&gt;test2&lt;/div&gt;
+&lt;div role=&quot;columnheader&quot; aria-label=&quot;test3&quot;&gt;test3&lt;/div&gt;
+
+&lt;div role=&quot;row&quot;&gt;
+   &lt;div role=&quot;gridcell&quot;&gt;test1&lt;/div&gt;
+   &lt;div role=&quot;gridcell&quot;&gt;test2&lt;/div&gt;
+   &lt;div role=&quot;gridcell&quot;&gt;test3&lt;/div&gt;
+&lt;/div&gt;
+
+&lt;/div&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This makes sure that if an ARIA table is used, the table's children does NOT include the column headers.&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;grid&quot;).focus();
+        var grid = accessibilityController.focusedElement;
+
+        // We should have 1 child, for the row. Column headers should not be exposed as children on iOS.
+        shouldBe(&quot;grid.childrenCount&quot;, &quot;1&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityaccessibilitycrashinaxcontainerexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityaccessibilitycrashinaxcontainerexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-crash-in-axcontainer-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/accessibility-crash-in-axcontainer-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-crash-in-axcontainer-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-crash-in-axcontainer-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+This makes sure that we don't crash when asking for the parent element of an object that has no document() because its parent was detached
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS link.iphoneLabel is 'AXLabel: yellow'
+PASS link.parentElement().iphoneLabel is 'AXLabel: '
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityaccessibilitycrashinaxcontainerhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityaccessibilitycrashinaxcontainerhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-crash-in-axcontainer.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/accessibility-crash-in-axcontainer.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-crash-in-axcontainer.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-crash-in-axcontainer.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;img src=&quot;resources/cake.png&quot; usemap=&quot;#map&quot; id=&quot;backImg&quot; alt=&quot;&quot; width=&quot;225&quot; height=&quot;206&quot;&gt;
+
+&lt;map name=&quot;map&quot; aria-labelledby=&quot;papercolor&quot;&gt;
+        &lt;area shape=&quot;rect&quot; tabindex=&quot;0&quot; alt=&quot;yellow&quot; href=&quot;#&quot; coords=&quot;19,28,46,52&quot; id=&quot;yellow&quot;&gt;
+        &lt;area shape=&quot;rect&quot; tabindex=&quot;0&quot; alt=&quot;orange&quot; href=&quot;#&quot; coords=&quot;58,28,85,52&quot; id=&quot;orange&quot;&gt;
+&lt;/map&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This makes sure that we don't crash when asking for the parent element of an object that has no document() because its parent was detached&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;body&quot;).focus();
+        var link = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(0);
+        shouldBe(&quot;link.iphoneLabel&quot;, &quot;'AXLabel: yellow'&quot;);
+
+        document.getElementById(&quot;backImg&quot;).parentNode.removeChild(document.getElementById(&quot;backImg&quot;));
+
+        // Should not crash here when asking for parentElement (even though it was removed).
+        shouldBe(&quot;link.parentElement().iphoneLabel&quot;, &quot;'AXLabel: '&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityaccessibilityhintexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityaccessibilityhintexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-hint-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/accessibility-hint-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-hint-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-hint-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+link label
+This makes sure that the title attribute is used as accessibilityHint
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS link.iphoneHint is 'AXHint: This is a hint'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityaccessibilityhinthtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityaccessibilityhinthtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-hint.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/accessibility-hint.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-hint.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/accessibility-hint.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;a tabindex=0 id=&quot;link&quot; href=&quot;#here&quot; title=&quot;This is a hint&quot;&gt;link label&lt;/a&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This makes sure that the title attribute is used as accessibilityHint&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;link&quot;).focus();
+        var link = accessibilityController.focusedElement;
+        shouldBe(&quot;link.iphoneHint&quot;, &quot;'AXHint: This is a hint'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityarialabelwithinternaltextexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityarialabelwithinternaltextexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/aria-label-with-internal-text-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/aria-label-with-internal-text-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/aria-label-with-internal-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/aria-label-with-internal-text-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+1
+1
+text1
+link1
+This tests that if an element has aria-label, it will override the visible text as necessary.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Button 1 should expose alternative text only.
+PASS button1.iphoneLabel is 'AXLabel: PLAY'
+Button 2 should expose internal text only.
+PASS button2.iphoneLabel is 'AXLabel: 1'
+Text 1 should rely on the stringValue() in the label field.
+PASS text1.iphoneLabel is 'AXLabel: text1'
+Link1 should combine the title field and the aria-label field.
+PASS link1.iphoneLabel is 'AXLabel: link1, link1-title'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityarialabelwithinternaltexthtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityarialabelwithinternaltexthtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/aria-label-with-internal-text.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/aria-label-with-internal-text.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/aria-label-with-internal-text.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/aria-label-with-internal-text.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,49 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;div id=&quot;button1&quot; role=&quot;button&quot; aria-label=&quot;PLAY&quot;&gt;&lt;span&gt;1&lt;/span&gt;&lt;/div&gt;
+&lt;div id=&quot;button2&quot; role=&quot;button&quot;&gt;&lt;span&gt;1&lt;/span&gt;&lt;/div&gt;
+&lt;div id=&quot;text1&quot; role=&quot;text&quot;&gt;&lt;span&gt;text1&lt;/span&gt;&lt;/div&gt;
+&lt;div id=&quot;link1&quot; title=&quot;link1-title&quot; role=&quot;link&quot;&gt;&lt;span&gt;link1&lt;/span&gt;&lt;/div&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that if an element has aria-label, it will override the visible text as necessary.&quot;);
+
+    if (window.accessibilityController) {
+
+        var button1 = accessibilityController.accessibleElementById(&quot;button1&quot;);
+        debug(&quot;Button 1 should expose alternative text only.&quot;);
+        shouldBe(&quot;button1.iphoneLabel&quot;, &quot;'AXLabel: PLAY'&quot;);
+
+        var button2 = accessibilityController.accessibleElementById(&quot;button2&quot;);
+        debug(&quot;Button 2 should expose internal text only.&quot;);
+        shouldBe(&quot;button2.iphoneLabel&quot;, &quot;'AXLabel: 1'&quot;);
+
+        var text1 = accessibilityController.accessibleElementById(&quot;text1&quot;);
+        debug(&quot;Text 1 should rely on the stringValue() in the label field.&quot;);
+        shouldBe(&quot;text1.iphoneLabel&quot;, &quot;'AXLabel: text1'&quot;);
+
+        var link1 = accessibilityController.accessibleElementById(&quot;link1&quot;);
+        debug(&quot;Link1 should combine the title field and the aria-label field.&quot;);
+        shouldBe(&quot;link1.iphoneLabel&quot;, &quot;'AXLabel: link1, link1-title'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityariapressedstateexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityariapressedstateexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/aria-pressed-state-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/aria-pressed-state-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/aria-pressed-state-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/aria-pressed-state-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+button 1
+button 2
+This test thats aria-pressed changes the traits returned by buttons
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS btn1.iphoneTraits != btn2.iphoneTraits is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityariapressedstatehtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityariapressedstatehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/aria-pressed-state.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/aria-pressed-state.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/aria-pressed-state.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/aria-pressed-state.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;div id=&quot;button1&quot; tabindex=0 role=&quot;button&quot; aria-pressed=&quot;true&quot;&gt;button 1&lt;/div&gt;
+&lt;div id=&quot;button2&quot; tabindex=0 role=&quot;button&quot; aria-pressed=&quot;false&quot;&gt;button 2&lt;/div&gt;
+
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test thats aria-pressed changes the traits returned by buttons&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;button1&quot;).focus();
+        var btn1 = accessibilityController.focusedElement;
+
+        document.getElementById(&quot;button2&quot;).focus();
+        var btn2 = accessibilityController.focusedElement;

+        shouldBe(&quot;btn1.iphoneTraits != btn2.iphoneTraits&quot;, &quot;true&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitycenterpointexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitycenterpointexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/centerpoint-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/centerpoint-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/centerpoint-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/centerpoint-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+blah   
+
+
+This tests that the center point for a checkbox with a label is not the same as the mid point of the frame (because the frame includes the bounds of the label)
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS (x + w/2) == clickPointX is false
+PASS (y + h/2) == clickPointY is false
+PASS (x + w/2) == clickPointX is true
+PASS (y + h/2) == clickPointY is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitycenterpointhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitycenterpointhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/centerpoint.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/centerpoint.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/centerpoint.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/centerpoint.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,68 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;label for=&quot;check1&quot;&gt;blah&lt;/label&gt;
+
+&lt;input type=&quot;checkbox&quot; id=&quot;check1&quot;&gt;
+
+&lt;br&gt;&lt;br&gt;
+
+&lt;input type=&quot;checkbox&quot; id=&quot;check2&quot;&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that the center point for a checkbox with a label is not the same as the mid point of the frame (because the frame includes the bounds of the label)&quot;);
+
+    if (window.accessibilityController) {
+
+        // Make sure a checkbox with a label DOES NOT have the same center point as the frame
+        document.getElementById(&quot;check1&quot;).focus();
+        var pass = accessibilityController.focusedElement;
+
+        var clickPointX = pass.clickPointX;
+        var clickPointY = pass.clickPointY;
+
+        var x = pass.x;
+        var y = pass.y;
+        var w = pass.width;
+        var h = pass.height;
+
+        shouldBeFalse(&quot;(x + w/2) == clickPointX&quot;);
+        shouldBeFalse(&quot;(y + h/2) == clickPointY&quot;);
+
+        // Now make sure a checkbox without a label DOES have the same centerpoint as the frame
+        document.getElementById(&quot;check2&quot;).focus();
+        pass = accessibilityController.focusedElement;
+
+        var clickPointX = pass.clickPointX;
+        var clickPointY = pass.clickPointY;
+
+        var x = pass.x;
+        var y = pass.y;
+        var w = pass.width;
+        var h = pass.height;
+
+        shouldBeTrue(&quot;(x + w/2) == clickPointX&quot;);
+        shouldBeTrue(&quot;(y + h/2) == clickPointY&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitydomfocusfiresoncorrectelementexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitydomfocusfiresoncorrectelementexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/dom-focus-fires-on-correct-element-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/dom-focus-fires-on-correct-element-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/dom-focus-fires-on-correct-element-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/dom-focus-fires-on-correct-element-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+link1
+heading1
+
+This tests that accessibilityElementDidBecomeFocused will be propagated to the correct parent and cause DOM focus to fire on the correct elements.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS textInsideLink.iphoneLabel is 'AXLabel: link1'
+PASS accessibilityController.focusedElement.childAtIndex(0).isEqual(textInsideLink) is true
+PASS textInsideHeading.iphoneLabel is 'AXLabel: heading1'
+PASS accessibilityController.focusedElement.childAtIndex(0).isEqual(textInsideHeading) is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitydomfocusfiresoncorrectelementhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitydomfocusfiresoncorrectelementhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/dom-focus-fires-on-correct-element.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/dom-focus-fires-on-correct-element.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/dom-focus-fires-on-correct-element.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/dom-focus-fires-on-correct-element.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+
+&lt;a id=&quot;link1&quot; href=&quot;#&quot;&gt;link1&lt;/a&gt;
+
+&lt;h1 id=&quot;heading1&quot; tabindex=0&gt;heading1&lt;/h1&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that accessibilityElementDidBecomeFocused will be propagated to the correct parent and cause DOM focus to fire on the correct elements.&quot;);
+
+
+    if (window.accessibilityController) {
+
+        var body = accessibilityController.rootElement;
+
+        // Get access to the text inside the link.
+        var textInsideLink = body.childAtIndex(0).childAtIndex(0).childAtIndex(0);
+        shouldBe(&quot;textInsideLink.iphoneLabel&quot;, &quot;'AXLabel: link1'&quot;);
+
+        // Simulate VoiceOver focus onto the element.
+        textInsideLink.assistiveTechnologySimulatedFocus();
+
+        // The new focused element should now be the link itself.
+        shouldBeTrue(&quot;accessibilityController.focusedElement.childAtIndex(0).isEqual(textInsideLink)&quot;);
+
+        // Repeat for text inside link inside heading.
+
+        // Get access to the text inside the link.
+        var textInsideHeading = body.childAtIndex(1).childAtIndex(0);
+        shouldBe(&quot;textInsideHeading.iphoneLabel&quot;, &quot;'AXLabel: heading1'&quot;);
+
+        // Simulate VoiceOver focus onto the element.
+        textInsideHeading.assistiveTechnologySimulatedFocus();
+
+        // The new focused element should now be the link itself.
+        shouldBeTrue(&quot;accessibilityController.focusedElement.childAtIndex(0).isEqual(textInsideHeading)&quot;);
+    }
+
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityelementpathsexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityelementpathsexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/element-paths-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/element-paths-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/element-paths-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/element-paths-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+ 
+This tests SVG group elements are accessible and that the svg:title element is returned properly.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+SVG path description
+Start Path
+        Move to point
+        Line to
+        Line to
+        Close
+
+Map1 path description
+Start Path
+        Move to point
+        Line to
+        Line to
+        Line to
+        Line to
+        Close
+
+Map2 path description
+Start Path
+        Move to point
+        Curve to
+        Curve to
+        Curve to
+        Curve to
+        Close
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityelementpathshtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityelementpathshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/element-paths.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/element-paths.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/element-paths.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/element-paths.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; version=&quot;1.1&quot;&gt;
+  &lt;path role=&quot;button&quot; id=&quot;svg&quot; d=&quot;M150 0 L75 200 L225 200 Z&quot; /&gt;
+&lt;/svg&gt;
+
+&lt;map name=&quot;imagemap1&quot;&gt;
+    &lt;AREA id=&quot;map1&quot; shape=&quot;polygon&quot; coords=&quot;90,25,162,26,163,96,89,25,90,24&quot; href=&quot;triangle.html&quot;&gt;
+    &lt;AREA id=&quot;map2&quot; shape=&quot;circle&quot; coords=&quot;130,304,110&quot; href=&quot;circle.html&quot;&gt;
+&lt;/map&gt;
+
+&lt;img src=&quot;resources/cake.png&quot;  border=&quot;0&quot; align=&quot;left&quot; usemap=&quot;#imagemap1&quot; vspace=&quot;1&quot;&gt;
+
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests SVG group elements are accessible and that the svg:title element is returned properly.&quot;);
+
+    if (window.accessibilityController) {
+
+          var svg = accessibilityController.accessibleElementById(&quot;svg&quot;);
+          debug(&quot;SVG path description&quot; + svg.pathDescription);
+
+          var map1 = accessibilityController.accessibleElementById(&quot;map1&quot;);
+          debug(&quot;Map1 path description&quot; + map1.pathDescription);
+
+          var map2 = accessibilityController.accessibleElementById(&quot;map2&quot;);
+          debug(&quot;Map2 path description&quot;  + map2.pathDescription);
+    }
+
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityfileuploadbuttonexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityfileuploadbuttonexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/file-upload-button-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/file-upload-button-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/file-upload-button-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/file-upload-button-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+
+This tests that the label and value are correct for input file types.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS button1.iphoneLabel is 'AXLabel: Choose File'
+PASS button1.iphoneValue is 'AXValue: no file selected'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityfileuploadbuttonhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityfileuploadbuttonhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/file-upload-button.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/file-upload-button.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/file-upload-button.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/file-upload-button.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;input id=&quot;file-input&quot; type=&quot;file&quot;/&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that the label and value are correct for input file types.&quot;);
+
+    if (window.accessibilityController) {
+
+        var button1 = accessibilityController.accessibleElementById(&quot;file-input&quot;);
+        shouldBe(&quot;button1.iphoneLabel&quot;, &quot;'AXLabel: Choose File'&quot;);
+        shouldBe(&quot;button1.iphoneValue&quot;, &quot;'AXValue: no file selected'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityfocuschangenotificationsexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityfocuschangenotificationsexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/focus-change-notifications-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/focus-change-notifications-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/focus-change-notifications-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/focus-change-notifications-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+H1
+
+H2
+
+This tests that notifications are fired for focus changes
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS addedNotification is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityfocuschangenotificationshtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityfocuschangenotificationshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/focus-change-notifications.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/focus-change-notifications.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/focus-change-notifications.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/focus-change-notifications.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;h1 tabindex=0 id=&quot;h1&quot;&gt;H1&lt;/h1&gt;
+&lt;h2 tabindex=0 id=&quot;h2&quot;&gt;H2&lt;/h2&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that notifications are fired for focus changes&quot;);
+
+    var focusChangeCount = 0;
+    var rootElement = 0;
+    function focusCallback(notification) {
+        if (notification == &quot;AXFocusChanged&quot;) {
+            focusChangeCount++;
+
+            // We should get a total of 2 focus changes.
+            if (focusChangeCount == 2) {
+               rootElement.removeNotificationListener();
+               window.testRunner.notifyDone();
+            }
+        }
+    }
+
+    if (window.accessibilityController) {
+        // Make sure AX gets turned on.
+        rootElement = accessibilityController.rootElement;
+        window.testRunner.waitUntilDone();
+
+        var addedNotification = rootElement.addNotificationListener(focusCallback);
+        shouldBe(&quot;addedNotification&quot;, &quot;true&quot;);
+
+        // Switch focus from h1.
+        document.getElementById(&quot;h2&quot;).focus();
+        // Cause focus change to be sent to h1.
+        document.getElementById(&quot;h1&quot;).focus();
+
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityheaderelementsexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityheaderelementsexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/header-elements-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/header-elements-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/header-elements-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/header-elements-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+This test makes sure asking for the header element for a cell, will return the header element
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS button.headerElementAtIndex(0).isEqual(header) is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+header 1        header 2        header 3
+cell 1        cell 2        cell 3
+cell 4        cell 5        cell
+6
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityheaderelementshtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityheaderelementshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/header-elements.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/header-elements.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/header-elements.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/header-elements.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;table border=1&gt;
+&lt;tr&gt;&lt;th&gt;header 1&lt;/th&gt;&lt;th&gt;header 2&lt;/th&gt;&lt;th tabindex=0 id=&quot;header&quot;&gt;header 3&lt;/th&gt;&lt;/tr&gt;
+&lt;tr&gt;&lt;td&gt;cell 1&lt;/td&gt;&lt;td&gt;cell 2&lt;/td&gt;&lt;td&gt;cell 3&lt;/td&gt;&lt;/tr&gt;
+&lt;tr&gt;&lt;td&gt;cell 4&lt;/td&gt;&lt;td&gt;cell 5&lt;/td&gt;&lt;td&gt;cell &lt;div role=&quot;button&quot; id=&quot;button&quot; tabindex=0&gt;6&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test makes sure asking for the header element for a cell, will return the header element&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;button&quot;).focus();
+        var button = accessibilityController.focusedElement;
+
+        document.getElementById(&quot;header&quot;).focus();
+        var header = accessibilityController.focusedElement;
+        shouldBeTrue(&quot;button.headerElementAtIndex(0).isEqual(header)&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityidentifierexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityidentifierexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/identifier-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/identifier-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/identifier-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/identifier-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+button 1
+This tests that id maps to AXIdentifier correctly
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS button1.iphoneIdentifier is 'AXIdentifier: button1'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityidentifierhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityidentifierhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/identifier.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/identifier.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/identifier.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/identifier.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;div tabindex=&quot;0&quot; id=&quot;button1&quot; role=&quot;button&quot; aria-selected=&quot;true&quot;&gt;button 1&lt;/div&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that id maps to AXIdentifier correctly&quot;);
+
+    if (window.accessibilityController) {
+
+        // Make sure a checkbox with a label DOES NOT have the same center point as the frame
+        document.getElementById(&quot;button1&quot;).focus();
+        var button1 = accessibilityController.focusedElement;
+        shouldBe(&quot;button1.iphoneIdentifier&quot;, &quot;'AXIdentifier: button1'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityinternallinkexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityinternallinkexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/internal-link-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/internal-link-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/internal-link-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/internal-link-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+Name 
+
+
+
+
+
+
+Linked Element
+This test thats internal links return their linked elements
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS link.linkedElement().iphoneLabel is 'AXLabel: Linked Element'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityinternallinkhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityinternallinkhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/internal-link.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/internal-link.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/internal-link.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/internal-link.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;a href=&quot;#name1&quot; id=&quot;name&quot;&gt;Name&lt;/a&gt;
+
+&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;
+&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;
+&lt;a name=&quot;name1&quot;&gt;Linked Element&lt;/a&gt;
+
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test thats internal links return their linked elements&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;name&quot;).focus();
+        var link = accessibilityController.focusedElement;
+        shouldBe(&quot;link.linkedElement().iphoneLabel&quot;, &quot;'AXLabel: Linked Element'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitylandmarktypeexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitylandmarktypeexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/landmark-type-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/landmark-type-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/landmark-type-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/landmark-type-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+text
+text
+This tests that landmarks return their type as part of the AX label.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS main.iphoneLabel is 'AXLabel: main'
+PASS banner.iphoneLabel is 'AXLabel: banner'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitylandmarktypehtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitylandmarktypehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/landmark-type.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/landmark-type.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/landmark-type.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/landmark-type.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;div role=&quot;main&quot; id=&quot;main&quot;&gt;
+text
+&lt;/div&gt;
+
+&lt;div role=&quot;banner&quot; id=&quot;banner&quot;&gt;
+text
+&lt;/div&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that landmarks return their type as part of the AX label.&quot;);
+
+    if (window.accessibilityController) {
+
+        var main = accessibilityController.accessibleElementById(&quot;main&quot;);
+        shouldBe(&quot;main.iphoneLabel&quot;, &quot;'AXLabel: main'&quot;);
+
+        var banner = accessibilityController.accessibleElementById(&quot;banner&quot;);
+        shouldBe(&quot;banner.iphoneLabel&quot;, &quot;'AXLabel: banner'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitylinkwithimagestextexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitylinkwithimagestextexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/link-with-images-text-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/link-with-images-text-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/link-with-images-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/link-with-images-text-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+  iPhoneFrom $99
+This test makes sure that a link with images and text appears as a link.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS obj.iphoneIsElement is true
+PASS obj.iphoneLabel is 'AXLabel:  iPhoneFrom $99'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitylinkwithimagestexthtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitylinkwithimagestexthtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/link-with-images-text.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/link-with-images-text.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/link-with-images-text.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/link-with-images-text.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;a href=&quot;store.html&quot;&gt;
+&lt;span&gt;
+&lt;img src=&quot;image.gif&quot; width=100 height=100 alt=&quot;&quot;&gt;
+&lt;strong&gt;iPhone&lt;/strong&gt;From $99&lt;/span&gt;                                                     
+&lt;/a&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test makes sure that a link with images and text appears as a link.&quot;);
+
+    if (window.accessibilityController) {
+
+        var obj = accessibilityController.rootElement.childAtIndex(0).childAtIndex(0);
+        shouldBe(&quot;obj.iphoneIsElement&quot;, &quot;true&quot;);
+        shouldBe(&quot;obj.iphoneLabel&quot;, &quot;'AXLabel:  iPhoneFrom $99'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitylinkwithonlyimageexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitylinkwithonlyimageexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/link-with-only-image-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/link-with-only-image-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/link-with-only-image-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/link-with-only-image-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+ 
+This test makes sure that a link with only an image will report the correct label.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS obj.iphoneIsElement is true
+PASS obj.iphoneLabel is 'AXLabel: Hello World'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitylinkwithonlyimagehtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitylinkwithonlyimagehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/link-with-only-image.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/link-with-only-image.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/link-with-only-image.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/link-with-only-image.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;a href=&quot;store.html&quot;&gt;
+&lt;img src=&quot;image.gif&quot; width=100 height=100 alt=&quot;Hello World&quot;&gt;
+&lt;/a&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test makes sure that a link with only an image will report the correct label.&quot;);
+
+    if (window.accessibilityController) {
+
+        var obj = accessibilityController.rootElement.childAtIndex(0).childAtIndex(0).childAtIndex(0);
+        shouldBe(&quot;obj.iphoneIsElement&quot;, &quot;true&quot;);
+        shouldBe(&quot;obj.iphoneLabel&quot;, &quot;'AXLabel: Hello World'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitymathexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitymathexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/math-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/math-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/math-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/math-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+Raman scattering study of the 
+Fe
+1
+x
+Co
+x
+Sb
+2
+ and 
+0
+x
+1
+ single crystals.
+This test the math role type will be an accessibility element.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS group.childrenCount is 5
+PASS group.childAtIndex(0).iphoneLabel is 'AXLabel: Raman scattering study of the'
+PASS group.childAtIndex(1).iphoneLabel is 'AXLabel:  F e sub 1  minus x, end subscript. C o sub x, S b sub 2, math'
+PASS group.childAtIndex(2).iphoneLabel is 'AXLabel: and'
+PASS group.childAtIndex(3).iphoneLabel is 'AXLabel:   open, 0  less than or equal to x  less than or equal to 1,  close, math'
+PASS group.childAtIndex(4).iphoneLabel is 'AXLabel: single crystals.'
+PASS group.childAtIndex(0).iphoneIsElement is true
+PASS group.childAtIndex(1).iphoneIsElement is true
+PASS group.childAtIndex(2).iphoneIsElement is true
+PASS group.childAtIndex(3).iphoneIsElement is true
+PASS group.childAtIndex(4).iphoneIsElement is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitymathhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitymathhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/math.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/math.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/math.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/math.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,96 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+  testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;div class=&quot;contents&quot; id=&quot;group&quot; tabindex=&quot;0&quot;&gt;
+      Raman scattering study of the  
+      &lt;span role=&quot;math&quot; aria-label=&quot; F e sub 1  minus x, end subscript. C o sub x, S b sub 2&quot;&gt;
+        &lt;math alttext=&quot; F e sub 1  minus x, end subscript. C o sub x, S b sub 2&quot; aria-hidden=&quot;true&quot;&gt;
+          &lt;mrow&gt;
+            &lt;msub&gt;
+              &lt;mrow&gt;
+                &lt;mtext&gt;Fe&lt;/mtext&gt;
+              &lt;/mrow&gt;
+              &lt;mrow&gt;
+                &lt;mn&gt;1&lt;/mn&gt;
+                &lt;mo&gt;&amp;#x2212;&lt;/mo&gt;
+                &lt;mi&gt;x&lt;/mi&gt;
+              &lt;/mrow&gt;
+            &lt;/msub&gt;
+            &lt;msub&gt;
+              &lt;mrow&gt;
+                &lt;mtext&gt;Co&lt;/mtext&gt;
+              &lt;/mrow&gt;
+              &lt;mi&gt;x&lt;/mi&gt;
+            &lt;/msub&gt;
+            &lt;msub&gt;
+              &lt;mrow&gt;
+                &lt;mtext&gt;Sb&lt;/mtext&gt;
+              &lt;/mrow&gt;
+              &lt;mn&gt;2&lt;/mn&gt;
+            &lt;/msub&gt;
+          &lt;/mrow&gt;
+        &lt;/math&gt;
+      &lt;/span&gt;
+      and 
+      &lt;span role=&quot;math&quot; aria-label=&quot;  open, 0  less than or equal to x  less than or equal to 1,  close&quot;&gt;
+        &lt;math role=&quot;presentation&quot; alttext=&quot;  open, 0  less than or equal to x  less than or equal to 1,  close&quot; aria-hidden=&quot;true&quot;&gt;
+          &lt;mrow&gt;
+            &lt;mrow&gt;
+              &lt;mo&gt;(&lt;/mo&gt;
+              &lt;mrow&gt;
+                &lt;mn&gt;0&lt;/mn&gt;
+                &lt;mo&gt;&amp;#x2264;&lt;/mo&gt;
+                &lt;mi&gt;x&lt;/mi&gt;
+                &lt;mo&gt;&amp;#x2264;&lt;/mo&gt;
+                &lt;mn&gt;1&lt;/mn&gt;
+              &lt;/mrow&gt;
+              &lt;mo&gt;)&lt;/mo&gt;
+            &lt;/mrow&gt;
+          &lt;/mrow&gt;
+        &lt;/math&gt;
+      &lt;/span&gt;
+      single crystals.
+    &lt;/div&gt;
+  
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+   description(&quot;This test the math role type will be an accessibility element.&quot;);
+
+   if (window.accessibilityController) {
+
+       document.getElementById(&quot;group&quot;).focus();
+       var group = accessibilityController.focusedElement;
+       shouldBe(&quot;group.childrenCount&quot;, &quot;5&quot;);
+       shouldBe(&quot;group.childAtIndex(0).iphoneLabel&quot;, &quot;'AXLabel: Raman scattering study of the'&quot;);
+       shouldBe(&quot;group.childAtIndex(1).iphoneLabel&quot;, &quot;'AXLabel:  F e sub 1  minus x, end subscript. C o sub x, S b sub 2, math'&quot;);
+       shouldBe(&quot;group.childAtIndex(2).iphoneLabel&quot;, &quot;'AXLabel: and'&quot;);
+       shouldBe(&quot;group.childAtIndex(3).iphoneLabel&quot;, &quot;'AXLabel:   open, 0  less than or equal to x  less than or equal to 1,  close, math'&quot;);
+       shouldBe(&quot;group.childAtIndex(4).iphoneLabel&quot;, &quot;'AXLabel: single crystals.'&quot;);
+
+       shouldBeTrue(&quot;group.childAtIndex(0).iphoneIsElement&quot;);
+       shouldBeTrue(&quot;group.childAtIndex(1).iphoneIsElement&quot;);
+       shouldBeTrue(&quot;group.childAtIndex(2).iphoneIsElement&quot;);
+       shouldBeTrue(&quot;group.childAtIndex(3).iphoneIsElement&quot;);
+       shouldBeTrue(&quot;group.childAtIndex(4).iphoneIsElement&quot;);
+   }
+
+   successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitymixedcheckboxesexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitymixedcheckboxesexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/mixed-checkboxes-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/mixed-checkboxes-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/mixed-checkboxes-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/mixed-checkboxes-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+1
+1
+1
+
+
+This test makes sure that a checkbox (ARIA or otherwise) returns its status through accessibilityValue
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS accessibilityController.focusedElement.iphoneValue is 'AXValue: 0'
+PASS accessibilityController.focusedElement.iphoneValue is 'AXValue: 1'
+PASS accessibilityController.focusedElement.iphoneValue is 'AXValue: 2'
+PASS accessibilityController.focusedElement.iphoneValue is 'AXValue: 1'
+PASS accessibilityController.focusedElement.iphoneValue is 'AXValue: 0'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitymixedcheckboxeshtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitymixedcheckboxeshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/mixed-checkboxes.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/mixed-checkboxes.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/mixed-checkboxes.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/mixed-checkboxes.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,54 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+
+&lt;div id=&quot;check1&quot; tabindex=0 role=&quot;checkbox&quot; aria-checked=&quot;false&quot;&gt;1&lt;/div&gt;
+&lt;div id=&quot;check2&quot; tabindex=0 role=&quot;checkbox&quot; aria-checked=&quot;true&quot;&gt;1&lt;/div&gt;
+&lt;div id=&quot;check3&quot; tabindex=0 role=&quot;checkbox&quot; aria-checked=&quot;mixed&quot;&gt;1&lt;/div&gt;
+
+&lt;input type=&quot;checkbox&quot; id=&quot;check4&quot; checked&gt;&lt;br&gt;
+&lt;input type=&quot;checkbox&quot; id=&quot;check5&quot;&gt;&lt;br&gt;
+
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test makes sure that a checkbox (ARIA or otherwise) returns its status through accessibilityValue&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;check1&quot;).focus();
+        shouldBe(&quot;accessibilityController.focusedElement.iphoneValue&quot;, &quot;'AXValue: 0'&quot;);
+
+        document.getElementById(&quot;check2&quot;).focus();
+        shouldBe(&quot;accessibilityController.focusedElement.iphoneValue&quot;, &quot;'AXValue: 1'&quot;);
+
+        document.getElementById(&quot;check3&quot;).focus();
+        shouldBe(&quot;accessibilityController.focusedElement.iphoneValue&quot;, &quot;'AXValue: 2'&quot;);
+
+        document.getElementById(&quot;check4&quot;).focus();
+        shouldBe(&quot;accessibilityController.focusedElement.iphoneValue&quot;, &quot;'AXValue: 1'&quot;);
+
+        document.getElementById(&quot;check5&quot;).focus();
+        shouldBe(&quot;accessibilityController.focusedElement.iphoneValue&quot;, &quot;'AXValue: 0'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitynochildlinkheaderexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitynochildlinkheaderexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/no-child-link-header-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/no-child-link-header-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/no-child-link-header-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/no-child-link-header-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+ALERT: Tests passed
+
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitynochildlinkheaderhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitynochildlinkheaderhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/no-child-link-header.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/no-child-link-header.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/no-child-link-header.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/no-child-link-header.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+    if (window.testRunner)
+        testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;a href=&quot;#&quot; title=&quot;LINK&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;empty.png&quot; width=100 height=100&gt;&lt;/a&gt;
+
+&lt;div role=&quot;heading&quot; aria-label=&quot;HEADING&quot; style='border:1px solid black; width:100px; height:100px;'&gt;&lt;/div&gt;
+
+
+&lt;script&gt;
+
+    //description(&quot;This test makes sure that links or headers that don't have children still appear in accessibility. The link doesn't have children because the image as a zero length alt tag.&quot;);
+
+    if (window.accessibilityController) {
+
+        var obj = accessibilityController.rootElement.childAtIndex(0).childAtIndex(0);
+        var succeeded = obj.iphoneIsElement &amp;&amp; obj.iphoneLabel == &quot;AXLabel: LINK&quot;;
+
+        //  shouldBe(&quot;succeeded&quot;, &quot;true&quot;);
+        var failed = false;
+        if (!succeeded) {
+            failed = true;
+        }
+
+        obj = accessibilityController.rootElement.childAtIndex(1);
+        succeeded = obj.iphoneIsElement &amp;&amp; obj.iphoneLabel == &quot;AXLabel: HEADING&quot;;
+        //  shouldBe(&quot;succeeded&quot;, &quot;true&quot;);
+
+        if (!succeeded) {
+           failed = true;
+        }
+
+        if (failed)
+            alert(&quot;Tests failed&quot;);
+        else
+           alert(&quot;Tests passed&quot;);
+
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitynoncontiguouslinkexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitynoncontiguouslinkexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/non-contiguous-link-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/non-contiguous-link-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/non-contiguous-link-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/non-contiguous-link-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+ALERT: Tests passed
+This is a link that would normally appear as multiple elements.
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitynoncontiguouslinkhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitynoncontiguouslinkhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/non-contiguous-link.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/non-contiguous-link.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/non-contiguous-link.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/non-contiguous-link.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+    if (window.testRunner)
+        testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;a href=&quot;#&quot;&gt;This is a link that &lt;b&gt;would&lt;/b&gt; normally appear &lt;b&gt;as multiple&lt;/b&gt; elements&lt;/a&gt;.
+
+&lt;script&gt;
+
+    //description(&quot;This test makes sure that only one element is returned for the link object, instead of many elements that are all links.&quot;);
+
+    if (window.accessibilityController) {
+
+        var obj = accessibilityController.rootElement.childAtIndex(0).childAtIndex(0);
+        var succeeded = obj.iphoneLabel == &quot;AXLabel: This is a link that would normally appear as multiple elements&quot;;
+        //  shouldBe(&quot;succeeded&quot;, &quot;true&quot;);
+        var failed = false;
+        if (!succeeded) {
+            failed = true;
+        }
+
+        succeeded = obj.iphoneIsElement;
+        //  shouldBe(&quot;succeeded&quot;, &quot;true&quot;);
+
+        if (!succeeded) {
+           failed = true;
+        }
+
+        if (failed)
+            alert(&quot;Tests failed&quot;);
+        else
+           alert(&quot;Tests passed&quot;);
+
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitypasswordvalueexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitypasswordvalueexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/password-value-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/password-value-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/password-value-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/password-value-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+
+This test that a password field returns a string of equal length to the password, but not the actual password
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS pass.iphoneValue.length is password.length + axValue.length
+PASS pass.iphoneValue == password is false
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitypasswordvaluehtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitypasswordvaluehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/password-value.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/password-value.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/password-value.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/password-value.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;input type=&quot;password&quot; id=&quot;pass&quot; value=&quot;asdfasdf&quot;&gt;
+
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test that a password field returns a string of equal length to the password, but not the actual password&quot;);
+
+    if (window.accessibilityController) {
+
+        var password = &quot;Hello World&quot;;
+        document.getElementById(&quot;pass&quot;).focus();
+        document.getElementById(&quot;pass&quot;).value = password;
+        var pass = accessibilityController.focusedElement;
+
+        var axValue = &quot;AXValue: &quot;;
+        shouldBe(&quot;pass.iphoneValue.length&quot;, &quot;password.length + axValue.length&quot;);
+        shouldBeFalse(&quot;pass.iphoneValue == password&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityplaceholdervalueexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityplaceholdervalueexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/placeholder-value-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/placeholder-value-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/placeholder-value-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/placeholder-value-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+
+This test that a text field with a place holder returns the placeholder as expected.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS pass.stringAttributeValue('AXPlaceholderValue') is 'place'
+PASS pass.iphoneValue is 'AXValue: val'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityplaceholdervaluehtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityplaceholdervaluehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/placeholder-value.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/placeholder-value.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/placeholder-value.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/placeholder-value.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;input type=&quot;text&quot; placeholder=&quot;place&quot; id=&quot;pass&quot; value='val'&gt;
+
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test that a text field with a place holder returns the placeholder as expected.&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;pass&quot;).focus();
+        var pass = accessibilityController.focusedElement;
+
+        shouldBe(&quot;pass.stringAttributeValue('AXPlaceholderValue')&quot;, &quot;'place'&quot;);
+        shouldBe(&quot;pass.iphoneValue&quot;, &quot;'AXValue: val'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitypopupbuttonvaluelabelexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitypopupbuttonvaluelabelexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/popup-button-value-label-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/popup-button-value-label-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/popup-button-value-label-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/popup-button-value-label-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+  
+This tests that a popup button will return the selected item through its value attribute instead of its label attribute.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS pass.iphoneValue is 'AXValue: item 1'
+PASS pass.iphoneLabel is 'AXLabel: '
+PASS pass.iphoneValue is 'AXValue: item 2'
+PASS pass.iphoneLabel is 'AXLabel: Popup'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitypopupbuttonvaluelabelhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitypopupbuttonvaluelabelhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/popup-button-value-label.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/popup-button-value-label.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/popup-button-value-label.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/popup-button-value-label.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,54 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;select id=&quot;pop&quot;&gt;
+&lt;option&gt;item 1&lt;/option&gt;
+&lt;option&gt;item 2&lt;/option&gt;
+&lt;/select&gt;
+
+&lt;select id=&quot;pop2&quot; aria-label=&quot;Popup&quot;&gt;
+&lt;option&gt;item 1&lt;/option&gt;
+&lt;option selected&gt;item 2&lt;/option&gt;
+&lt;/select&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that a popup button will return the selected item through its value attribute instead of its label attribute.&quot;);
+
+    if (window.accessibilityController) {
+
+        // Check the first popup button.
+        document.getElementById(&quot;pop&quot;).focus();
+        var pass = accessibilityController.focusedElement;
+
+        shouldBe(&quot;pass.iphoneValue&quot;, &quot;'AXValue: item 1'&quot;);
+        shouldBe(&quot;pass.iphoneLabel&quot;, &quot;'AXLabel: '&quot;);
+
+        // Check the second popup button.
+        document.getElementById(&quot;pop2&quot;).focus();
+        pass = accessibilityController.focusedElement;
+
+        shouldBe(&quot;pass.iphoneValue&quot;, &quot;'AXValue: item 2'&quot;);
+        shouldBe(&quot;pass.iphoneLabel&quot;, &quot;'AXLabel: Popup'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityprogressbarexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityprogressbarexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/progressbar-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/progressbar-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/progressbar-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/progressbar-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+blah
+This tests that progress bars show up in the AX hierarchy and that min, current and max values are reported correctly.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS button1.iphoneLabel is 'AXLabel: Popularity'
+PASS button1.iphoneValue is 'AXValue: 5.00'
+PASS button1.iphoneIsElement is true
+PASS button1.minValue is 1
+PASS button1.maxValue is 12
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityprogressbarhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityprogressbarhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/progressbar.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/progressbar.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/progressbar.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/progressbar.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;div id=&quot;progressbar&quot; role=&quot;progressbar&quot; aria-label=&quot;Popularity&quot; aria-valuemin=&quot;1&quot; aria-valuenow=&quot;5&quot; aria-valuemax=&quot;12&quot;&gt;blah&lt;/div&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that progress bars show up in the AX hierarchy and that min, current and max values are reported correctly.&quot;);
+
+    if (window.accessibilityController) {
+
+        var button1 = accessibilityController.accessibleElementById(&quot;progressbar&quot;);
+        shouldBe(&quot;button1.iphoneLabel&quot;, &quot;'AXLabel: Popularity'&quot;);
+        shouldBe(&quot;button1.iphoneValue&quot;, &quot;'AXValue: 5.00'&quot;);
+        shouldBeTrue(&quot;button1.iphoneIsElement&quot;);
+        shouldBe(&quot;button1.minValue&quot;, &quot;1&quot;);
+        shouldBe(&quot;button1.maxValue&quot;, &quot;12&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityradiobuttonexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityradiobuttonexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/radio-button-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/radio-button-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/radio-button-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/radio-button-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+   
+This tests that radio buttons are exposed as distinct types from checkboxes, that they can report the right value whether it's checked, and they can report they're part of a group.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS checkbox.iphoneTraits != radio1.iphoneTraits is true
+PASS radio1.iphoneValue is 'AXValue: 1'
+PASS radio2.iphoneValue is 'AXValue: 0'
+PASS radio3.iphoneValue is 'AXValue: 0'
+PASS radio1.rowIndexRange() is '{0, 3}'
+PASS radio2.rowIndexRange() is '{1, 3}'
+PASS radio3.rowIndexRange() is '{2, 3}'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityradiobuttonhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityradiobuttonhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/radio-button.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/radio-button.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/radio-button.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/radio-button.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;input type=&quot;checkbox&quot; id=&quot;checkbox&quot;&gt;
+&lt;input id=&quot;radio1&quot; type=&quot;radio&quot; checked name=&quot;group&quot;&gt;
+&lt;input id=&quot;radio2&quot; type=&quot;radio&quot; name=&quot;group&quot;&gt;
+&lt;input id=&quot;radio3&quot; type=&quot;radio&quot; name=&quot;group&quot;&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that radio buttons are exposed as distinct types from checkboxes, that they can report the right value whether it's checked, and they can report they're part of a group.&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;checkbox&quot;).focus();
+        var checkbox = accessibilityController.focusedElement;
+
+        document.getElementById(&quot;radio1&quot;).focus();
+        var radio1 = accessibilityController.focusedElement;
+
+        document.getElementById(&quot;radio2&quot;).focus();
+        var radio2 = accessibilityController.focusedElement;
+
+        document.getElementById(&quot;radio3&quot;).focus();
+        var radio3 = accessibilityController.focusedElement;
+
+        // Verify checkbox and radio have different traits.
+        shouldBeTrue(&quot;checkbox.iphoneTraits != radio1.iphoneTraits&quot;);
+
+        // Verify the value of the checked radio item is correct.
+        shouldBe(&quot;radio1.iphoneValue&quot;, &quot;'AXValue: 1'&quot;);
+        shouldBe(&quot;radio2.iphoneValue&quot;, &quot;'AXValue: 0'&quot;);
+        shouldBe(&quot;radio3.iphoneValue&quot;, &quot;'AXValue: 0'&quot;);
+
+        // Verify the radio buttons are part of a group.
+        shouldBe(&quot;radio1.rowIndexRange()&quot;, &quot;'{0, 3}'&quot;);
+        shouldBe(&quot;radio2.rowIndexRange()&quot;, &quot;'{1, 3}'&quot;);
+        shouldBe(&quot;radio3.rowIndexRange()&quot;, &quot;'{2, 3}'&quot;);
+    }
+
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitysecuretextfieldexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitysecuretextfieldexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/secure-text-field-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/secure-text-field-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/secure-text-field-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/secure-text-field-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,2 @@
</span><ins>+ALERT: Tests passed

</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitysecuretextfieldhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitysecuretextfieldhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/secure-text-field.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/secure-text-field.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/secure-text-field.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/secure-text-field.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,44 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+    if (window.testRunner)
+        testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;input type=&quot;password&quot; id=&quot;pass&quot; size=&quot;10&quot;&gt;
+&lt;input type=&quot;text&quot; id=&quot;text&quot; size=&quot;11&quot;&gt;
+
+
+&lt;script&gt;
+
+    //description(&quot;This test makes sure that a password field and a text field do not have the same traits (because password field has secure text field traits)&quot;);
+
+    if (window.accessibilityController) {
+
+        var passfield = accessibilityController.rootElement.childAtIndex(0).childAtIndex(0);
+        var textfield = accessibilityController.rootElement.childAtIndex(0).childAtIndex(1);
+        var succeeded = passfield.iphoneTraits != textfield.iphoneTraits;
+
+        //  shouldBe(&quot;succeeded&quot;, &quot;true&quot;);
+        var failed = false;
+        if (!succeeded) {
+            failed = true;
+        }
+
+        if (failed)
+            alert(&quot;Tests failed&quot;);
+        else
+           alert(&quot;Tests passed&quot;);
+
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityselectedbuttonsexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityselectedbuttonsexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/selected-buttons-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/selected-buttons-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/selected-buttons-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/selected-buttons-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+button 1
+button 2
+tab 1
+tab 2
+This tests that aria-selected behaves as expected (by returning the right traits) on tabs and buttons.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS button1.isSelected is true
+PASS button2.isSelected is false
+PASS tab1.isSelected is true
+PASS tab2.isSelected is false
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityselectedbuttonshtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityselectedbuttonshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/selected-buttons.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/selected-buttons.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/selected-buttons.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/selected-buttons.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,53 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;div tabindex=&quot;0&quot; id=&quot;button1&quot; role=&quot;button&quot; aria-selected=&quot;true&quot;&gt;button 1&lt;/div&gt;
+&lt;div tabindex=&quot;0&quot; id=&quot;button2&quot; role=&quot;button&quot; aria-selected=&quot;false&quot;&gt;button 2&lt;/div&gt;
+
+&lt;div tabindex=&quot;0&quot; id=&quot;tab1&quot; role=&quot;tab&quot; aria-selected=&quot;true&quot;&gt;tab 1&lt;/div&gt;
+&lt;div tabindex=&quot;0&quot; id=&quot;tab2&quot; role=&quot;tab&quot; aria-selected=&quot;false&quot;&gt;tab 2&lt;/div&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that aria-selected behaves as expected (by returning the right traits) on tabs and buttons.&quot;);
+
+    if (window.accessibilityController) {
+
+        // Make sure a checkbox with a label DOES NOT have the same center point as the frame
+        document.getElementById(&quot;button1&quot;).focus();
+        var button1 = accessibilityController.focusedElement;
+        shouldBeTrue(&quot;button1.isSelected&quot;);
+
+        document.getElementById(&quot;button2&quot;).focus();
+        var button2 = accessibilityController.focusedElement;
+        shouldBeFalse(&quot;button2.isSelected&quot;);
+
+        document.getElementById(&quot;tab1&quot;).focus();
+        var tab1 = accessibilityController.focusedElement;
+        shouldBeTrue(&quot;tab1.isSelected&quot;);
+
+        document.getElementById(&quot;tab2&quot;).focus();
+        var tab2 = accessibilityController.focusedElement;
+        shouldBeFalse(&quot;tab2.isSelected&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityselectedtextexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityselectedtextexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/selected-text-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/selected-text-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/selected-text-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/selected-text-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+Text before
+This is a test of Safari web selection
+Text after
+This tests that accessibility can pull out the selected text
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS focusedElement.stringForSelection is 'This'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityselectedtexthtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityselectedtexthtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/selected-text.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/selected-text.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/selected-text.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/selected-text.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,46 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;../../../editing/editing.js&quot; language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot; &gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+Text before
+&lt;div tabindex=0 id=&quot;container&quot;&gt;This is a test of Safari web selection&lt;/div&gt;
+Text after
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that accessibility can pull out the selected text&quot;);
+
+    if (window.accessibilityController) {
+        document.getElementById(&quot;container&quot;).focus();
+        setSelectionCommand(document.getElementById('container'), 0, document.getElementById('container'), 0);
+
+        var focusedElement = accessibilityController.focusedElement;
+
+        // Select: &quot;This is&quot;
+        for (var k = 0; k &lt; 7; k++) 
+            focusedElement.increaseTextSelection();
+
+        // &quot;Unselect: &quot; is&quot;
+        for (var k = 0; k &lt; 3; k++) 
+            focusedElement.decreaseTextSelection();
+
+        shouldBe(&quot;focusedElement.stringForSelection&quot;, &quot;'This'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitysvggroupelementwithtitleexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitysvggroupelementwithtitleexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/svg-group-element-with-title-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/svg-group-element-with-title-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/svg-group-element-with-title-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/svg-group-element-with-title-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+This tests SVG group elements are accessible and that the svg:title element is returned properly.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Verify that the SVG group is returned as an accessible element.
+PASS group1.iphoneLabel is 'AXLabel: SVG TITLE 1'
+PASS group1.iphoneIsElement is true
+
+Verify that you can hit-test to the SVG group.
+PASS hitTestElement.isEqual(group1) is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitysvggroupelementwithtitlehtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitysvggroupelementwithtitlehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/svg-group-element-with-title.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/svg-group-element-with-title.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/svg-group-element-with-title.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/svg-group-element-with-title.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;svg width=&quot;500&quot; height=&quot;300&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;
+  &lt;g id=&quot;group1&quot;&gt;
+    &lt;title&gt;SVG TITLE 1&lt;/title&gt;
+    &lt;rect x=&quot;10&quot; y=&quot;10&quot; width=&quot;200&quot; height=&quot;100&quot;
+      style=&quot;fill:none; stroke:blue; stroke-width:1px&quot;/&gt;
+  &lt;/g&gt;
+&lt;/svg&gt;
+
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests SVG group elements are accessible and that the svg:title element is returned properly.&quot;);
+
+    if (window.accessibilityController) {
+
+          debug(&quot;Verify that the SVG group is returned as an accessible element.&quot;);
+          var group1 = accessibilityController.accessibleElementById(&quot;group1&quot;);
+          shouldBe(&quot;group1.iphoneLabel&quot;, &quot;'AXLabel: SVG TITLE 1'&quot;);
+          shouldBeTrue(&quot;group1.iphoneIsElement&quot;);
+
+          debug(&quot;\nVerify that you can hit-test to the SVG group.&quot;);
+          var hitTestElement = accessibilityController.elementAtPoint(group1.clickPointX, group1.clickPointY);
+          shouldBeTrue(&quot;hitTestElement.isEqual(group1)&quot;);
+    }
+
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitysvgpathcrashexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitysvgpathcrashexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/svg-path-crash-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/svg-path-crash-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/svg-path-crash-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/svg-path-crash-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,13 @@
</span><ins>+36 to 45
+This tests that asking for the path from a SVG element that does not have one will not crash.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+
+Start Path
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitysvgpathcrashhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitysvgpathcrashhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/svg-path-crash.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/svg-path-crash.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/svg-path-crash.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/svg-path-crash.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;svg&gt;
+&lt;g role=&quot;listitem&quot;&gt;
+    &lt;rect id=&quot;rect&quot; role=&quot;img&quot; aria-label=&quot;very light magenta&quot; x=&quot;40&quot; y=&quot;246&quot; width=&quot;20&quot; height=&quot;20&quot; class=&quot;key colour1&quot;&gt;&lt;/rect&gt;
+    &lt;text x=&quot;65&quot; y=&quot;261&quot; font-size=&quot;12&quot;&gt;36 to 45&lt;/text&gt;
+&lt;/g&gt;
+&lt;/svg&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This tests that asking for the path from a SVG element that does not have one will not crash.&quot;);
+
+    if (window.accessibilityController) {
+
+        var rect = accessibilityController.accessibleElementById(&quot;rect&quot;);
+
+        // Don't crash!
+        debug(rect.pathDescription);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytabroleexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytabroleexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/tab-role-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/tab-role-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/tab-role-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/tab-role-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+tab1
+
+This test makes sure that role='tab' shows up as a distinct element from button.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS tab.iphoneLabel is 'AXLabel: tab1'
+PASS button.iphoneTraits != tab.iphoneTraits is true
+PASS tab.iphoneTraits != 0 is true
+PASS tab.isSelected is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytabrolehtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytabrolehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/tab-role.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/tab-role.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/tab-role.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/tab-role.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;div id=&quot;fakeButton&quot; tabindex=0 role=&quot;tab&quot; aria-selected=&quot;true&quot;&gt;tab1&lt;/div&gt;
+
+&lt;input type=&quot;button&quot; tabindex=0 id=&quot;realButton&quot; value=&quot;button&quot;&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test makes sure that role='tab' shows up as a distinct element from button.&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;fakeButton&quot;).focus();
+        var tab = accessibilityController.focusedElement;
+        shouldBe(&quot;tab.iphoneLabel&quot;, &quot;'AXLabel: tab1'&quot;);
+
+        // Now make sure it has the same traits as a button.
+        document.getElementById(&quot;realButton&quot;).focus();
+        var button = accessibilityController.focusedElement;
+
+        shouldBeTrue(&quot;button.iphoneTraits != tab.iphoneTraits&quot;);
+        shouldBeTrue(&quot;tab.iphoneTraits != 0&quot;);
+
+        shouldBeTrue(&quot;tab.isSelected&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytablecellforrowcolexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytablecellforrowcolexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-for-row-col-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/table-cell-for-row-col-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-for-row-col-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-for-row-col-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+This test makes sure that you can retrieve elements within a cell by their row and column
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS cell2.cellForColumnAndRow(2, 0).isEqual(header) is true
+PASS header.cellForColumnAndRow(1, 2).isEqual(cell6) is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+header 1        header 2        header 3
+cell 1        
+cell
+2
+cell 4        cell 5        cell
+6
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytablecellforrowcolhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytablecellforrowcolhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-for-row-col.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/table-cell-for-row-col.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-for-row-col.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-for-row-col.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,48 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;table border=1&gt;
+&lt;tr&gt;&lt;th&gt;header 1&lt;/th&gt;&lt;th&gt;header 2&lt;/th&gt;&lt;th tabindex=0 id=&quot;header&quot;&gt;header 3&lt;/th&gt;&lt;/tr&gt;
+&lt;tr&gt;&lt;td&gt;cell 1&lt;/td&gt;&lt;td colspan=2&gt;&lt;div role=&quot;button&quot; id=&quot;cell2&quot; tabindex=0&gt;cell&lt;/div&gt; 2&lt;/td&gt;&lt;/tr&gt;
+&lt;tr&gt;&lt;td&gt;cell 4&lt;/td&gt;&lt;td id=&quot;cell5&quot; tabindex=0&gt;cell 5&lt;/td&gt;&lt;td&gt;cell &lt;div role=&quot;button&quot; id=&quot;cell6&quot; tabindex=0&gt;6&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test makes sure that you can retrieve elements within a cell by their row and column&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;cell2&quot;).focus();
+        var cell2 = accessibilityController.focusedElement;
+
+        document.getElementById(&quot;header&quot;).focus();
+        var header = accessibilityController.focusedElement;
+
+        shouldBeTrue(&quot;cell2.cellForColumnAndRow(2, 0).isEqual(header)&quot;);
+
+        document.getElementById(&quot;cell5&quot;).focus();
+        var cell6 = accessibilityController.focusedElement;
+        shouldBeTrue(&quot;header.cellForColumnAndRow(1, 2).isEqual(cell6)&quot;);
+
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytablecellrangesexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytablecellrangesexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-ranges-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/table-cell-ranges-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-ranges-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-ranges-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+This test makes sure that elements within tables cells return the correct row, col ranges
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS cell2.rowIndexRange() is '{1, 1}'
+PASS cell2.columnIndexRange() is '{1, 2}'
+PASS cell6.rowIndexRange() is '{2, 1}'
+PASS cell6.columnIndexRange() is '{2, 1}'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+header 1        header 2        header 3
+cell 1        
+cell
+2
+cell 4        cell 5        cell
+6
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytablecellrangeshtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytablecellrangeshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-ranges.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/table-cell-ranges.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-ranges.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/table-cell-ranges.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,45 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+if (window.testRunner)
+   testRunner.dumpAsText();
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;table border=1&gt;
+&lt;tr&gt;&lt;th&gt;header 1&lt;/th&gt;&lt;th&gt;header 2&lt;/th&gt;&lt;th tabindex=0 id=&quot;header&quot;&gt;header 3&lt;/th&gt;&lt;/tr&gt;
+&lt;tr&gt;&lt;td&gt;cell 1&lt;/td&gt;&lt;td colspan=2&gt;&lt;div role=&quot;button&quot; id=&quot;cell2&quot; tabindex=0&gt;cell&lt;/div&gt; 2&lt;/td&gt;&lt;/tr&gt;
+&lt;tr&gt;&lt;td&gt;cell 4&lt;/td&gt;&lt;td&gt;cell 5&lt;/td&gt;&lt;td&gt;cell &lt;div role=&quot;button&quot; id=&quot;cell6&quot; tabindex=0&gt;6&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test makes sure that elements within tables cells return the correct row, col ranges&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;cell2&quot;).focus();
+        var cell2 = accessibilityController.focusedElement;
+        shouldBe(&quot;cell2.rowIndexRange()&quot;, &quot;'{1, 1}'&quot;);
+        shouldBe(&quot;cell2.columnIndexRange()&quot;, &quot;'{1, 2}'&quot;);
+
+        document.getElementById(&quot;cell6&quot;).focus();
+        var cell6 = accessibilityController.focusedElement;
+        shouldBe(&quot;cell6.rowIndexRange()&quot;, &quot;'{2, 1}'&quot;);
+        shouldBe(&quot;cell6.columnIndexRange()&quot;, &quot;'{2, 1}'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytableslistsexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytableslistsexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/tables-lists-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/tables-lists-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/tables-lists-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/tables-lists-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+item 1
+list item 1
+table item 1        table item 2        table item 3
+landmark 1
+This test makes sure that items in lists, tables and landmarks have different traits on them, because they're contained in different items.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS listItem.iphoneTraits != initialItem.iphoneTraits is true
+PASS listItem.iphoneTraits != tableItem.iphoneTraits is true
+PASS listItem.iphoneTraits != landmarkItem.iphoneTraits is true
+PASS tableItem.iphoneTraits != initialItem.iphoneTraits is true
+PASS tableItem.iphoneTraits != landmarkItem.iphoneTraits is true
+PASS landmarkItem.iphoneTraits != initialItem.iphoneTraits is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytableslistshtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytableslistshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/tables-lists.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/tables-lists.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/tables-lists.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/tables-lists.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,59 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+item 1
+
+&lt;ol&gt;
+&lt;li&gt;list item 1&lt;/li&gt;
+&lt;/ol&gt;
+
+&lt;table border=1&gt;
+&lt;tr&gt;&lt;td&gt;table item 1&lt;/td&gt;
+&lt;td&gt;table item 2&lt;/td&gt;
+&lt;td&gt;table item 3&lt;/td&gt;&lt;/tr&gt;
+&lt;/table&gt;
+
+&lt;div role=&quot;main&quot;&gt;
+&lt;b&gt;landmark 1&lt;/b&gt;
+&lt;/div&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test makes sure that items in lists, tables and landmarks have different traits on them, because they're contained in different items.&quot;);
+
+    if (window.accessibilityController) {
+
+        var root = accessibilityController.rootElement;
+       
+        var initialItem = root.childAtIndex(0).childAtIndex(0);
+        var listItem = root.childAtIndex(1).childAtIndex(0).childAtIndex(0);
+        var tableItem = root.childAtIndex(2).childAtIndex(0);
+        var landmarkItem = root.childAtIndex(5).childAtIndex(0).childAtIndex(0);
+
+        shouldBe(&quot;listItem.iphoneTraits != initialItem.iphoneTraits&quot;, &quot;true&quot;);
+        shouldBe(&quot;listItem.iphoneTraits != tableItem.iphoneTraits&quot;, &quot;true&quot;);
+        shouldBe(&quot;listItem.iphoneTraits != landmarkItem.iphoneTraits&quot;, &quot;true&quot;);
+
+        shouldBe(&quot;tableItem.iphoneTraits != initialItem.iphoneTraits&quot;, &quot;true&quot;);
+        shouldBe(&quot;tableItem.iphoneTraits != landmarkItem.iphoneTraits&quot;, &quot;true&quot;);
+
+        shouldBe(&quot;landmarkItem.iphoneTraits != initialItem.iphoneTraits&quot;, &quot;true&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytextlinenoignoredelementsexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytextlinenoignoredelementsexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/text-line-no-ignored-elements-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/text-line-no-ignored-elements-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/text-line-no-ignored-elements-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/text-line-no-ignored-elements-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+text linetext line
+This test ensures that when asking for a line of text, we do not include objects that should be ignored. The image in this example should not appear so the array of elements should be size of 2.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS array.length is 2
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytextlinenoignoredelementshtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytextlinenoignoredelementshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/text-line-no-ignored-elements.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/text-line-no-ignored-elements.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/text-line-no-ignored-elements.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/text-line-no-ignored-elements.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;div&gt;&lt;a href=&quot;#&quot;&gt;text line&lt;/a&gt;&lt;img alt=&quot;&quot; width=1 height=10 src=&quot;&quot;&gt;&lt;a href=&quot;#&quot;&gt;text line&lt;/a&gt;&lt;/div&gt;
+
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test ensures that when asking for a line of text, we do not include objects that should be ignored. The image in this example should not appear so the array of elements should be size of 2.&quot;);
+
+    if (window.accessibilityController) {
+
+        var obj = accessibilityController.rootElement;
+        var array = obj.elementsForRange(0, 16);
+        shouldBe(&quot;array.length&quot;, &quot;2&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytextmarkerlistitemexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytextmarkerlistitemexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-list-item-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/text-marker-list-item-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-list-item-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-list-item-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+item 1
+This test ensures that when asking for the string for a range, it includes the list item marker
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS text is '1. item 1'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytextmarkerlistitemhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytextmarkerlistitemhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-list-item.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/text-marker-list-item.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-list-item.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-list-item.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;ol&gt;
+&lt;li&gt;item 1&lt;/li&gt;
+&lt;/ol&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test ensures that when asking for the string for a range, it includes the list item marker&quot;);
+
+    if (window.accessibilityController) {
+
+        var obj = accessibilityController.rootElement;
+        var text = obj.stringForRange(0, 6);
+        shouldBe(&quot;text&quot;, &quot;'1. item 1'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytextmarkervalidationexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytextmarkervalidationexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-validation-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/text-marker-validation-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-validation-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-validation-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+element 1
+element 2
+element 3
+element 4
+This test ensures that a text range can be found for an element within a web page.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS succeeded is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytextmarkervalidationhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytextmarkervalidationhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-validation.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/text-marker-validation.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-validation.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/text-marker-validation.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;div&gt;element 1&lt;/div&gt;
+&lt;div&gt;element 2&lt;/div&gt;
+&lt;div&gt;element 3&lt;/div&gt;
+&lt;div&gt;element 4&lt;/div&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test ensures that a text range can be found for an element within a web page. &quot;);
+
+    if (window.accessibilityController) {
+
+        var obj = accessibilityController.rootElement.childAtIndex(2);
+
+        var textPos = obj.iphoneElementTextPosition;
+        var textLen = obj.iphoneElementTextLength;
+
+        var succeeded = textPos == 20 &amp;&amp; textLen == 9;
+        shouldBe(&quot;succeeded&quot;, &quot;true&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytextroleexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytextroleexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/text-role-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/text-role-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/text-role-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/text-role-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+hello world this is a test more test
+This test ensures that the &quot;text&quot; role works as expected. That is, it creates a static text object that can be controlled with aria-label.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS textrole.iphoneLabel is 'AXLabel: all at once'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytextrolehtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytextrolehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/text-role.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/text-role.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/text-role.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/text-role.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;div id=&quot;textrole&quot; tabindex=0 role=&quot;text&quot; aria-label=&quot;all at once&quot;&gt;
+&lt;b&gt;hello world&lt;/b&gt;
+&lt;i&gt;this is a test&lt;/i&gt;
+&lt;a href=&quot;#&quot;&gt;more test&lt;/a&gt;
+&lt;/div&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test ensures that the \&quot;text\&quot; role works as expected. That is, it creates a static text object that can be controlled with aria-label.&quot;);
+
+    if (window.accessibilityController) {
+
+        document.getElementById(&quot;textrole&quot;).focus();
+        var textrole = accessibilityController.rootElement.childAtIndex(0);
+        shouldBe(&quot;textrole.iphoneLabel&quot;, &quot;'AXLabel: all at once'&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytextfieldinaxvalueexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytextfieldinaxvalueexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/textfield-in-axvalue-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/textfield-in-axvalue-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/textfield-in-axvalue-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/textfield-in-axvalue-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+
+H1 Test
+
+
+
+This test ensures that textfields return their content in accessibilityValue, and label in axLabel. Likewise, other elements and text still return their info through axLabel.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS textfield.iphoneLabel is 'AXLabel: Search'
+PASS textfield.iphoneValue is 'AXValue: hello'
+PASS h1.iphoneLabel is 'AXLabel: H1 Test'
+PASS h1.iphoneValue is 'AXValue: 1'
+PASS button.iphoneLabel is 'AXLabel: Button Title'
+PASS button.iphoneValue is 'AXValue: '
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilitytextfieldinaxvaluehtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilitytextfieldinaxvaluehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/textfield-in-axvalue.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/textfield-in-axvalue.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/textfield-in-axvalue.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/textfield-in-axvalue.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,45 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;input type=&quot;text&quot; id=&quot;textfield&quot; size=&quot;20&quot; value=&quot;hello&quot; aria-label=&quot;Search&quot; tabindex=&quot;0&quot;&gt;&lt;BR&gt;
+&lt;h1 tabindex=&quot;0&quot; id=&quot;h1&quot;&gt;H1 Test&lt;/h1&gt;&lt;BR&gt;
+&lt;input type=&quot;button&quot; id=&quot;button&quot; value=&quot;Button Title&quot; tabindex=&quot;0&quot;&gt;
+
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test ensures that textfields return their content in accessibilityValue, and label in axLabel. Likewise, other elements and text still return their info through axLabel.&quot;);
+
+    if (window.accessibilityController) {
+
+        var textfield = accessibilityController.rootElement.childAtIndex(0).childAtIndex(0);
+        shouldBe(&quot;textfield.iphoneLabel&quot;, &quot;'AXLabel: Search'&quot;);
+        shouldBe(&quot;textfield.iphoneValue&quot;, &quot;'AXValue: hello'&quot;);
+
+        var h1 = accessibilityController.rootElement.childAtIndex(1);
+        shouldBe(&quot;h1.iphoneLabel&quot;, &quot;'AXLabel: H1 Test'&quot;);
+        // Should be 1 for the heading level.
+        shouldBe(&quot;h1.iphoneValue&quot;, &quot;'AXValue: 1'&quot;);
+
+        var button = accessibilityController.rootElement.childAtIndex(2).childAtIndex(0);
+        shouldBe(&quot;button.iphoneLabel&quot;, &quot;'AXLabel: Button Title'&quot;);
+        shouldBe(&quot;button.iphoneValue&quot;, &quot;'AXValue: '&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityurltestexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityurltestexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/url-test-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/url-test-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/url-test-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/url-test-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+
+test
+
+This test ensures that we can retrieve URLs for appropriate elements.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS element.url.indexOf('url-test1.html') != -1 is true
+PASS element.url.indexOf('url-test2.html') != -1 is true
+PASS element.url.indexOf('url-test3.png') != -1 is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimaccessibilityurltesthtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoraccessibilityurltesthtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/accessibility/url-test.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/accessibility/url-test.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/accessibility/url-test.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/accessibility/url-test.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+var successfullyParsed = false;
+&lt;/script&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body id=&quot;body&quot;&gt;
+
+&lt;input type=&quot;image&quot; src=&quot;url-test1.html&quot;&gt;&lt;BR&gt;
+&lt;a href=&quot;#url-test2.html&quot;&gt;test&lt;/a&gt;&lt;BR&gt;
+&lt;img src=&quot;url-test3.png&quot; width=100 height=100 alt=&quot;test&quot;&gt;&lt;BR&gt;
+
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+
+&lt;script&gt;
+
+    description(&quot;This test ensures that we can retrieve URLs for appropriate elements.&quot;);
+
+    if (window.accessibilityController) {
+
+        var element = accessibilityController.rootElement.childAtIndex(0).childAtIndex(0);
+        shouldBe(&quot;element.url.indexOf('url-test1.html') != -1&quot;, &quot;true&quot;);
+
+        element = accessibilityController.rootElement.childAtIndex(0).childAtIndex(1);
+        shouldBe(&quot;element.url.indexOf('url-test2.html') != -1&quot;, &quot;true&quot;);
+
+        element = accessibilityController.rootElement.childAtIndex(0).childAtIndex(2);
+        shouldBe(&quot;element.url.indexOf('url-test3.png') != -1&quot;, &quot;true&quot;);
+    }
+
+    successfullyParsed = true;
+&lt;/script&gt;
+
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimiphonegetComputedStyletextdecorationletterpressexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatoriphonegetComputedStyletextdecorationletterpressexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/iphone/getComputedStyle-text-decoration-letterpress-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/iphone/getComputedStyle-text-decoration-letterpress-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/iphone/getComputedStyle-text-decoration-letterpress-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/iphone/getComputedStyle-text-decoration-letterpress-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+Test for custom letterpress text-decoration style.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+Initial value:
+PASS e.style.getPropertyCSSValue('text-decoration') is null
+PASS computedStyle.textDecoration is 'none'
+PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none'
+
+Initial value (explicit):
+PASS e.style.textDecoration is 'initial'
+PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSValue]'
+PASS e.style.getPropertyCSSValue('text-decoration').cssText is 'initial'
+PASS computedStyle.textDecoration is 'none'
+PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none'
+
+Value 'none':
+PASS e.style.textDecoration is 'none'
+PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSPrimitiveValue]'
+PASS e.style.getPropertyCSSValue('text-decoration').cssText is 'none'
+PASS computedStyle.textDecoration is 'none'
+PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSPrimitiveValue]'
+PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'none'
+
+Value '-webkit-letterpress':
+PASS e.style.textDecoration is '-webkit-letterpress'
+PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
+PASS e.style.getPropertyCSSValue('text-decoration').cssText is '-webkit-letterpress'
+PASS computedStyle.textDecoration is '-webkit-letterpress'
+PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
+PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is '-webkit-letterpress'
+
+Value 'underline -webkit-letterpress line-through':
+PASS e.style.textDecoration is 'underline -webkit-letterpress line-through'
+PASS e.style.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
+PASS e.style.getPropertyCSSValue('text-decoration').cssText is 'underline -webkit-letterpress line-through'
+PASS computedStyle.textDecoration is 'underline line-through -webkit-letterpress'
+PASS computedStyle.getPropertyCSSValue('text-decoration').toString() is '[object CSSValueList]'
+PASS computedStyle.getPropertyCSSValue('text-decoration').cssText is 'underline line-through -webkit-letterpress'
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimiphonegetComputedStyletextdecorationletterpresshtmlfromrev167368trunkLayoutTestsplatformiphonesimulatoriphonegetComputedStyletextdecorationletterpresshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/iphone/getComputedStyle-text-decoration-letterpress.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/iphone/getComputedStyle-text-decoration-letterpress.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/iphone/getComputedStyle-text-decoration-letterpress.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/iphone/getComputedStyle-text-decoration-letterpress.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;script src=&quot;resources/getComputedStyle-text-decoration-letterpress.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimiphoneresourcesgetComputedStyletextdecorationletterpressjsfromrev167368trunkLayoutTestsplatformiphonesimulatoriphoneresourcesgetComputedStyletextdecorationletterpressjs"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/iphone/resources/getComputedStyle-text-decoration-letterpress.js (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/iphone/resources/getComputedStyle-text-decoration-letterpress.js) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/iphone/resources/getComputedStyle-text-decoration-letterpress.js                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/iphone/resources/getComputedStyle-text-decoration-letterpress.js        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+function testElementStyle(propertyJS, propertyCSS, type, value)
+{
+    if (type != null) {
+        shouldBe(&quot;e.style.&quot; + propertyJS, &quot;'&quot; + value + &quot;'&quot;);
+        shouldBe(&quot;e.style.getPropertyCSSValue('&quot; + propertyCSS + &quot;').toString()&quot;, &quot;'&quot; + type + &quot;'&quot;);
+        shouldBe(&quot;e.style.getPropertyCSSValue('&quot; + propertyCSS + &quot;').cssText&quot;, &quot;'&quot; + value + &quot;'&quot;);
+    } else
+        shouldBeNull(&quot;e.style.getPropertyCSSValue('&quot; + propertyCSS + &quot;')&quot;);
+}
+
+function testComputedStyle(propertyJS, propertyCSS, type, value)
+{
+    computedStyle = window.getComputedStyle(e, null);
+    shouldBe(&quot;computedStyle.&quot; + propertyJS, &quot;'&quot; + value + &quot;'&quot;);
+    shouldBe(&quot;computedStyle.getPropertyCSSValue('&quot; + propertyCSS + &quot;').toString()&quot;, &quot;'&quot; + type + &quot;'&quot;);
+    shouldBe(&quot;computedStyle.getPropertyCSSValue('&quot; + propertyCSS + &quot;').cssText&quot;, &quot;'&quot; + value + &quot;'&quot;);
+}
+
+description(&quot;Test for custom letterpress text-decoration style.&quot;)
+
+var testContainer = document.createElement(&quot;div&quot;);
+document.body.appendChild(testContainer);
+
+testContainer.innerHTML = '&lt;div id=&quot;test&quot;&gt;hello world&lt;/div&gt;';
+debug(&quot;Initial value:&quot;);
+e = document.getElementById('test');
+testElementStyle(&quot;textDecoration&quot;, &quot;text-decoration&quot;, null, '');
+testComputedStyle(&quot;textDecoration&quot;, &quot;text-decoration&quot;, &quot;[object CSSPrimitiveValue]&quot;, &quot;none&quot;);
+debug('');
+
+debug(&quot;Initial value (explicit):&quot;);
+e.style.textDecoration = 'initial';
+testElementStyle(&quot;textDecoration&quot;, &quot;text-decoration&quot;, &quot;[object CSSValue]&quot;, &quot;initial&quot;);
+testComputedStyle(&quot;textDecoration&quot;, &quot;text-decoration&quot;, &quot;[object CSSPrimitiveValue]&quot;, &quot;none&quot;);
+debug('');
+
+debug(&quot;Value 'none':&quot;);
+e.style.textDecoration = 'none';
+testElementStyle(&quot;textDecoration&quot;, &quot;text-decoration&quot;, &quot;[object CSSPrimitiveValue]&quot;, &quot;none&quot;);
+testComputedStyle(&quot;textDecoration&quot;, &quot;text-decoration&quot;, &quot;[object CSSPrimitiveValue]&quot;, &quot;none&quot;);
+debug('');
+
+debug(&quot;Value '-webkit-letterpress':&quot;);
+e.style.textDecoration = '-webkit-letterpress';
+testElementStyle(&quot;textDecoration&quot;, &quot;text-decoration&quot;, &quot;[object CSSValueList]&quot;, &quot;-webkit-letterpress&quot;);
+testComputedStyle(&quot;textDecoration&quot;, &quot;text-decoration&quot;, &quot;[object CSSValueList]&quot;, &quot;-webkit-letterpress&quot;);
+debug('');
+
+debug(&quot;Value 'underline -webkit-letterpress line-through':&quot;);
+e.style.textDecoration = 'underline -webkit-letterpress line-through';
+testElementStyle(&quot;textDecoration&quot;, &quot;text-decoration&quot;, &quot;[object CSSValueList]&quot;, &quot;underline -webkit-letterpress line-through&quot;);
+testComputedStyle(&quot;textDecoration&quot;, &quot;text-decoration&quot;, &quot;[object CSSValueList]&quot;, &quot;underline line-through -webkit-letterpress&quot;);
+debug('');
+
+document.body.removeChild(testContainer);
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizinganonymousblockexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizinganonymousblockexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/anonymous-block-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/anonymous-block-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/anonymous-block-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/anonymous-block-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x40
+        RenderText {#text} at (0,0) size 751x39
+          text run at (0,0) width 619: &quot;This tests that line-height adjustments for text autosizing are preserved when anonymous blocks &quot;
+          text run at (618,0) width 133: &quot;are destroyed during&quot;
+          text run at (0,20) width 124: &quot;incremental layout.&quot;
+      RenderBlock {DIV} at (0,56) size 600x224
+        RenderBlock (anonymous) at (0,0) size 600x96
+          RenderText {#text} at (0,1) size 585x94
+            text run at (0,1) width 580: &quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit.&quot;
+            text run at (0,33) width 585: &quot;Maecenas eu nisl leo, vel commodo nibh. Fusce suscipit&quot;
+            text run at (0,65) width 535: &quot;arcu eu elit vulputate non hendrerit velit consequat.&quot;
+        RenderBlock {DIV} at (0,96) size 600x0
+        RenderBlock (anonymous) at (0,96) size 600x128
+          RenderText {#text} at (0,1) size 578x126
+            text run at (0,1) width 578: &quot;Etiam venenatis posuere nisl id sagittis. Fusce tincidunt&quot;
+            text run at (0,33) width 545: &quot;velit at sapien porta ornare. Morbi egestas, diam nec&quot;
+            text run at (0,65) width 574: &quot;ultricies molestie, est velit ultricies leo, aliquet placerat&quot;
+            text run at (0,97) width 203: &quot;justo libero id arcu.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizinganonymousblockhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizinganonymousblockhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/anonymous-block.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/anonymous-block.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/anonymous-block.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/anonymous-block.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;script&gt;
+    if (window.testRunner)
+        window.testRunner.setTextAutosizingEnabled(true);
+&lt;/script&gt;
+&lt;p&gt;
+    This tests that line-height adjustments for text autosizing are preserved when anonymous blocks
+    are destroyed during incremental layout.
+&lt;/p&gt;
+&lt;div style=&quot;width: 600px; line-height: 20px;&quot;&gt;
+    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eu nisl leo, vel commodo nibh. Fusce suscipit arcu eu elit vulputate non hendrerit velit consequat.
+    &lt;div id=&quot;target&quot;&gt;&lt;/div&gt;
+    Etiam venenatis posuere nisl id sagittis. Fusce tincidunt velit at sapien porta ornare. Morbi egestas, diam nec ultricies molestie, est velit ultricies leo, aliquet placerat justo libero id arcu.
+&lt;/div&gt;
+&lt;script&gt;
+    document.body.offsetTop;
+    var pre = document.querySelector(&quot;div#target&quot;);
+    pre.parentNode.replaceChild(document.createElement(&quot;div&quot;), pre);
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingcontenteditableexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingcontenteditableexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/contenteditable-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/contenteditable-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/contenteditable-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/contenteditable-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x584
+      RenderBlock {P} at (0,0) size 784x20
+        RenderText {#text} at (0,0) size 514x19
+          text run at (0,0) width 440: &quot;This tests that text autosizing is not applied to editable elements and &quot;
+          text run at (439,0) width 75: &quot;documents.&quot;
+      RenderBlock {DIV} at (0,36) size 600x80
+        RenderText {#text} at (0,0) size 595x39
+          text run at (0,0) width 591: &quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eu nisl leo, vel commodo&quot;
+          text run at (590,0) width 5: &quot; &quot;
+          text run at (0,20) width 464: &quot;nibh. Fusce suscipit arcu eu elit vulputate non hendrerit velit consequat. &quot;
+        RenderBR {BR} at (0,0) size 0x0
+        RenderText {#text} at (0,40) size 600x39
+          text run at (0,40) width 579: &quot;Etiam venenatis posuere nisl id sagittis. Fusce tincidunt velit at sapien porta ornare. Morbi&quot;
+          text run at (578,40) width 5: &quot; &quot;
+          text run at (0,60) width 599: &quot;egestas, diam nec ultricies molestie, est velit ultricies leo, aliquet placerat justo libero id arcu.&quot;
+          text run at (598,60) width 2: &quot; &quot;
+      RenderBlock (anonymous) at (0,116) size 784x154
+        RenderIFrame {IFRAME} at (0,0) size 304x154 [border: (2px inset #000000)]
+          layer at (0,0) size 608x150
+            RenderView at (0,0) size 300x150
+          layer at (0,0) size 300x150
+            RenderBlock {HTML} at (0,0) size 300x150
+              RenderBody {BODY} at (8,8) size 284x134
+                RenderBlock {DIV} at (0,0) size 600x80
+                  RenderText {#text} at (0,0) size 595x39
+                    text run at (0,0) width 591: &quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eu nisl leo, vel commodo&quot;
+                    text run at (590,0) width 5: &quot; &quot;
+                    text run at (0,20) width 464: &quot;nibh. Fusce suscipit arcu eu elit vulputate non hendrerit velit consequat. &quot;
+                  RenderBR {BR} at (0,0) size 0x0
+                  RenderText {#text} at (0,40) size 600x39
+                    text run at (0,40) width 579: &quot;Etiam venenatis posuere nisl id sagittis. Fusce tincidunt velit at sapien porta ornare. Morbi&quot;
+                    text run at (578,40) width 5: &quot; &quot;
+                    text run at (0,60) width 599: &quot;egestas, diam nec ultricies molestie, est velit ultricies leo, aliquet placerat justo libero id arcu.&quot;
+                    text run at (598,60) width 2: &quot;    &quot;
+        RenderText {#text} at (0,0) size 0x0
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingcontenteditablehtmlfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingcontenteditablehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/contenteditable.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/contenteditable.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/contenteditable.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/contenteditable.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+&lt;script&gt;
+    if (window.testRunner)
+        window.testRunner.setTextAutosizingEnabled(true);
+&lt;/script&gt;
+&lt;p&gt;
+    This tests that text autosizing is not applied to editable elements and
+    documents.
+&lt;/p&gt;
+&lt;div contenteditable style=&quot;width: 600px;&quot;&gt;
+    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eu nisl leo, vel commodo nibh. Fusce suscipit arcu eu elit vulputate non hendrerit velit consequat.
+    &lt;br&gt;
+    Etiam venenatis posuere nisl id sagittis. Fusce tincidunt velit at sapien porta ornare. Morbi egestas, diam nec ultricies molestie, est velit ultricies leo, aliquet placerat justo libero id arcu.
+&lt;/div&gt;
+&lt;iframe src='data:text/html,
+    &lt;script&gt;
+        document.designMode = &quot;on&quot;;
+    &lt;/script&gt;
+    &lt;div contenteditable style=&quot;width: 600px;&quot;&gt;
+        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eu nisl leo, vel commodo nibh. Fusce suscipit arcu eu elit vulputate non hendrerit velit consequat.
+        &lt;br&gt;
+        Etiam venenatis posuere nisl id sagittis. Fusce tincidunt velit at sapien porta ornare. Morbi egestas, diam nec ultricies molestie, est velit ultricies leo, aliquet placerat justo libero id arcu.
+    &lt;/div&gt;
+'&gt;
+&lt;/iframe&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingfirstletterexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingfirstletterexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/first-letter-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/first-letter-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/first-letter-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/first-letter-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {P} at (0,0) size 784x27
+        RenderText {#text} at (0,0) size 366x26
+          text run at (0,0) width 366: &quot;The following lines should be identical.&quot;
+      RenderBlock {P} at (0,43) size 784x27
+        RenderInline {SPAN} at (0,0) size 17x26 [color=#008000]
+          RenderText {#text} at (0,0) size 17x26
+            text run at (0,0) width 17: &quot;A&quot;
+        RenderText {#text} at (16,0) size 23x26
+          text run at (16,0) width 23: &quot;-Z&quot;
+      RenderBlock {P} at (0,86) size 784x27
+        RenderInline (generated) at (0,0) size 17x26 [color=#008000]
+          RenderText {#text} at (0,0) size 17x26
+            text run at (0,0) width 17: &quot;A&quot;
+        RenderText {#text} at (16,0) size 23x26
+          text run at (16,0) width 23: &quot;-Z&quot;
+      RenderBlock {P} at (0,129) size 784x27
+        RenderBlock (floating) at (0,0) size 17x27 [color=#008000]
+          RenderText {#text} at (0,0) size 17x26
+            text run at (0,0) width 17: &quot;A&quot;
+        RenderText {#text} at (17,0) size 22x26
+          text run at (17,0) width 22: &quot;-Z&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingfirstletterhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingfirstletterhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/first-letter.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/first-letter.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/first-letter.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/first-letter.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+        &lt;style&gt;
+        p.firstLetter:first-letter {
+            color: green;
+        }
+        p.float:first-letter {
+            float: left;
+        }
+    &lt;/style&gt;
+    &lt;script&gt;
+    if (window.testRunner)
+        window.testRunner.setTextAutosizingEnabled(true);
+    &lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    &lt;p&gt;The following lines should be identical.&lt;/p&gt;
+    &lt;p&gt;&lt;span style=&quot;color:green&quot;&gt;A&lt;/span&gt;-Z&lt;/p&gt;
+    &lt;p class=&quot;firstLetter&quot;&gt;A-Z&lt;/p&gt;
+    &lt;p class=&quot;firstLetter float&quot;&gt;A-Z&lt;/p&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingfontfamilycaseinsensitiveexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingfontfamilycaseinsensitiveexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/font-family-case-insensitive-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/font-family-case-insensitive-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/font-family-case-insensitive-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/font-family-case-insensitive-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+Each row of the table should have text that is the same size.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS &lt;font&gt; rows were all the same size
+PASS &lt;span&gt; rows were all the same size
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingfontfamilycaseinsensitivehtmlfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingfontfamilycaseinsensitivehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/font-family-case-insensitive.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/font-family-case-insensitive.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/font-family-case-insensitive.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/font-family-case-insensitive.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,67 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;title&gt;Case-Insensitive Font Family Name Comparisons&lt;/title&gt;
+&lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+if (window.testRunner)
+    window.testRunner.setTextAutosizingEnabled(true);
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;p id=&quot;description&quot;&gt;&lt;/p&gt;
+&lt;div id=&quot;console&quot;&gt;&lt;/div&gt;
+&lt;div id=&quot;content&quot;&gt;
+
+    &lt;!-- HTML &lt;font&gt; Styling --&gt;
+    &lt;table width=&quot;600&quot;&gt;
+        &lt;tr&gt;&lt;td&gt;&lt;font face=&quot;VERDANA&quot;&gt;Test&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
+        &lt;tr&gt;&lt;td&gt;&lt;font face=&quot;VERDANA&quot;&gt;Test&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
+        &lt;tr&gt;&lt;td&gt;&lt;font face=&quot;Verdana&quot;&gt;Test&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
+        &lt;tr&gt;&lt;td&gt;&lt;font face=&quot;VERDANA&quot;&gt;Test&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
+    &lt;/table&gt;
+
+    &lt;!-- CSS font-family Styling --&gt;
+    &lt;table width=&quot;600&quot;&gt;
+        &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;test&quot; style=&quot;font-family:VERDANA&quot;&gt;Test&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
+        &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;test&quot; style=&quot;font-family:VERDANA&quot;&gt;Test&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
+        &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;test&quot; style=&quot;font-family:Verdana&quot;&gt;Test&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
+        &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;test&quot; style=&quot;font-family:VERDANA&quot;&gt;Test&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
+    &lt;/table&gt;
+
+&lt;/div&gt;
+
+&lt;script&gt;
+description('Each row of the table should have text that is the same size.');
+
+function verifyEqualSizes(list, description) {
+    var hadFailure = false;
+    var firstRowRect = list[0].getBoundingClientRect();
+    for (var i=0; i&lt;list.length; ++i) {
+        var row = list[i].getBoundingClientRect();
+        if (row.width !== firstRowRect.width || row.height !== firstRowRect.height) {
+            hadFailure = true;
+            testFailed('Row ' + i + ': was ' + row.width + 'x' + row.height +
+              ' but should have been ' + firstRowRect.width + 'x' + firstRowRect.height);
+        }
+    }
+
+    if (!hadFailure)
+        testPassed(description + ' rows were all the same size');
+}
+
+window.onload = function() {
+    verifyEqualSizes(document.querySelectorAll('font'), '&lt;font&gt;');
+    verifyEqualSizes(document.querySelectorAll('span.test'), '&lt;span&gt;');
+    document.getElementById('content').style.display = 'none';
+    finishJSTest();
+}
+
+window.jsTestIsAsync = true;
+var successfullyParsed = true;
+&lt;/script&gt;
+&lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizinglistsexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizinglistsexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/lists-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/lists-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/lists-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/lists-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+layer at (0,0) size 800x600
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock (anonymous) at (0,0) size 784x27
+        RenderText {#text} at (0,0) size 323x26
+          text run at (0,0) width 323: &quot;'1' markers should be the same size&quot;
+      RenderBlock {OL} at (0,43) size 784x54
+        RenderListItem {LI} at (40,0) size 744x54
+          RenderBlock (anonymous) at (0,0) size 744x27
+            RenderListMarker at (-29,0) size 22x26: &quot;1&quot;
+            RenderText {#text} at (0,0) size 38x26
+              text run at (0,0) width 38: &quot;first&quot;
+          RenderBlock {OL} at (0,27) size 744x27
+            RenderListItem {LI} at (40,0) size 704x27
+              RenderListMarker at (-29,0) size 22x26: &quot;1&quot;
+              RenderText {#text} at (0,0) size 64x26
+                text run at (0,0) width 64: &quot;second&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizinglistshtmlfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizinglistshtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/lists.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/lists.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/lists.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/lists.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+    &lt;script&gt;
+    if (window.testRunner)
+        window.testRunner.setTextAutosizingEnabled(true);
+    &lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    '1' markers should be the same size
+    &lt;ol&gt;
+        &lt;li&gt;first
+        &lt;ol&gt;&lt;li&gt;second&lt;/li&gt;&lt;/ol&gt;
+        &lt;/li&gt;
+    &lt;/ol&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingoverflowexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingoverflowexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/overflow-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/overflow-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/overflow-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/overflow-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,91 @@
</span><ins>+layer at (0,0) size 800x1572
+  RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,10) size 784x580
+      RenderBlock {DIV} at (10,0) size 764x124 [border: (2px solid #000000)]
+        RenderBlock {P} at (12,28) size 740x80
+          RenderInline {B} at (0,0) size 715x39
+            RenderText {#text} at (0,0) size 715x39
+              text run at (0,0) width 715: &quot;This text shouldn't autosize. Usually this appears to be a designer's fault, when the new text is added, but&quot;
+              text run at (0,20) width 585: &quot;block height is not changed. Or an overflow was made intentionally for some purpose.&quot;
+          RenderText {#text} at (584,20) size 739x59
+            text run at (584,20) width 148: &quot; Lorem ipsum dolor sit&quot;
+            text run at (0,40) width 739: &quot;amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat&quot;
+            text run at (0,60) width 57: &quot;volutpat.&quot;
+        RenderBlock {P} at (12,124) size 740x80
+          RenderText {#text} at (0,0) size 738x79
+            text run at (0,0) width 686: &quot;Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea&quot;
+            text run at (0,20) width 720: &quot;commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel&quot;
+            text run at (0,40) width 738: &quot;illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum&quot;
+            text run at (0,60) width 346: &quot;zzril delenit augue duis dolore te feugait nulla facilisi.&quot;
+        RenderBlock {DIV} at (22,220) size 720x1342 [border: (2px solid #000000)]
+          RenderBlock (anonymous) at (12,12) size 696x40
+            RenderInline {B} at (0,0) size 108x19
+              RenderText {#text} at (0,0) size 108x19
+                text run at (0,0) width 108: &quot;Still should not.&quot;
+            RenderText {#text} at (107,0) size 696x39
+              text run at (107,0) width 589: &quot; Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod&quot;
+              text run at (0,20) width 357: &quot;tincidunt ut laoreet dolore magna aliquam erat volutpat.&quot;
+          RenderBlock {P} at (12,68) size 696x80
+            RenderText {#text} at (0,0) size 686x79
+              text run at (0,0) width 686: &quot;Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea&quot;
+              text run at (0,20) width 625: &quot;commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie&quot;
+              text run at (0,40) width 667: &quot;consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui&quot;
+              text run at (0,60) width 512: &quot;blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.&quot;
+          RenderBlock {DIV} at (22,164) size 676x1156 [border: (2px solid #000000)]
+            RenderBlock (anonymous) at (12,12) size 652x40
+              RenderInline {B} at (0,0) size 108x19
+                RenderText {#text} at (0,0) size 108x19
+                  text run at (0,0) width 108: &quot;Still should not.&quot;
+              RenderText {#text} at (107,0) size 638x39
+                text run at (107,0) width 531: &quot; Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh&quot;
+                text run at (0,20) width 415: &quot;euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.&quot;
+            RenderBlock {P} at (12,68) size 652x80
+              RenderText {#text} at (0,0) size 648x79
+                text run at (0,0) width 648: &quot;Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip&quot;
+                text run at (0,20) width 604: &quot;ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse&quot;
+                text run at (0,40) width 635: &quot;molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio&quot;
+                text run at (0,60) width 603: &quot;dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.&quot;
+            RenderBlock {DIV} at (22,164) size 632x970 [border: (2px solid #000000)]
+              RenderBlock {P} at (12,28) size 608x192
+                RenderInline {B} at (0,0) size 542x94
+                  RenderText {#text} at (0,1) size 542x94
+                    text run at (0,1) width 542: &quot;This text should autoresize. Sometimes content is&quot;
+                    text run at (0,33) width 542: &quot;being put in fixed-height (by a mistake) blocks to&quot;
+                    text run at (0,65) width 199: &quot;apply some styles.&quot;
+                RenderText {#text} at (198,65) size 576x126
+                  text run at (198,65) width 303: &quot; Lorem ipsum dolor sit amet,&quot;
+                  text run at (0,97) width 554: &quot;consectetuer adipiscing elit, sed diam nonummy nibh&quot;
+                  text run at (0,129) width 576: &quot;euismod tincidunt ut laoreet dolore magna aliquam erat&quot;
+                  text run at (0,161) width 92: &quot;volutpat.&quot;
+              RenderBlock {P} at (12,236) size 608x256
+                RenderText {#text} at (0,1) size 600x254
+                  text run at (0,1) width 600: &quot;Ut wisi enim ad minim veniam, quis nostrud exerci tation&quot;
+                  text run at (0,33) width 508: &quot;ullamcorper suscipit lobortis nisl ut aliquip ex ea&quot;
+                  text run at (0,65) width 588: &quot;commodo consequat. Duis autem vel eum iriure dolor in&quot;
+                  text run at (0,97) width 577: &quot;hendrerit in vulputate velit esse molestie consequat, vel&quot;
+                  text run at (0,129) width 537: &quot;illum dolore eu feugiat nulla facilisis at vero eros et&quot;
+                  text run at (0,161) width 557: &quot;accumsan et iusto odio dignissim qui blandit praesent&quot;
+                  text run at (0,193) width 577: &quot;luptatum zzril delenit augue duis dolore te feugait nulla&quot;
+                  text run at (0,225) width 78: &quot;facilisi.&quot;
+              RenderBlock {DIV} at (22,508) size 588x440 [border: (2px solid #000000)]
+                RenderBlock (anonymous) at (12,12) size 564x128
+                  RenderInline {B} at (0,0) size 166x30
+                    RenderText {#text} at (0,1) size 166x30
+                      text run at (0,1) width 166: &quot;Should as well.&quot;
+                  RenderText {#text} at (165,1) size 554x126
+                    text run at (165,1) width 303: &quot; Lorem ipsum dolor sit amet,&quot;
+                    text run at (0,33) width 554: &quot;consectetuer adipiscing elit, sed diam nonummy nibh&quot;
+                    text run at (0,65) width 530: &quot;euismod tincidunt ut laoreet dolore magna aliquam&quot;
+                    text run at (0,97) width 138: &quot;erat volutpat.&quot;
+                RenderBlock {P} at (12,156) size 564x256
+                  RenderText {#text} at (0,1) size 564x254
+                    text run at (0,1) width 534: &quot;Ut wisi enim ad minim veniam, quis nostrud exerci&quot;
+                    text run at (0,33) width 544: &quot;tation ullamcorper suscipit lobortis nisl ut aliquip ex&quot;
+                    text run at (0,65) width 529: &quot;ea commodo consequat. Duis autem vel eum iriure&quot;
+                    text run at (0,97) width 510: &quot;dolor in hendrerit in vulputate velit esse molestie&quot;
+                    text run at (0,129) width 564: &quot;consequat, vel illum dolore eu feugiat nulla facilisis at&quot;
+                    text run at (0,161) width 513: &quot;vero eros et accumsan et iusto odio dignissim qui&quot;
+                    text run at (0,193) width 513: &quot;blandit praesent luptatum zzril delenit augue duis&quot;
+                    text run at (0,225) width 313: &quot;dolore te feugait nulla facilisi.&quot;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingoverflowhtmlfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingoverflowhtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/overflow.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/overflow.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/overflow.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/overflow.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+    &lt;style type=&quot;text/css&quot;&gt;
+    div {
+        border-style:solid;
+        border-width:2px;
+        padding: 10px;
+        margin: 10px;
+    };
+    &lt;/style&gt;
+
+    &lt;script&gt;
+    if (window.testRunner)
+        window.testRunner.setTextAutosizingEnabled(true);
+    &lt;/script&gt;
+
+&lt;/head&gt;
+&lt;body&gt;
+    &lt;div style=&quot;height:100px&quot;&gt;
+        &lt;p&gt;&lt;b&gt;This text shouldn't autosize. Usually this appears to be a designer's fault, when the new text is added, but block height is not changed. Or an overflow was made intentionally for some purpose.&lt;/b&gt; Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. &lt;p&gt;Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
+        &lt;div&gt;
+            &lt;b&gt;Still should not.&lt;/b&gt; Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. &lt;p&gt;Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
+            &lt;div&gt;
+                &lt;b&gt;Still should not.&lt;/b&gt; Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. &lt;p&gt;Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
+                &lt;div&gt;
+                    &lt;p&gt;&lt;b&gt;This text should autoresize. Sometimes content is being put in fixed-height (by a mistake) blocks to apply some styles.&lt;/b&gt; Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. &lt;p&gt;Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
+                    &lt;div&gt;
+                    &lt;b&gt;Should as well.&lt;/b&gt; Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. &lt;p&gt;Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
+                &lt;/div&gt;
+            &lt;/div&gt;
+        &lt;/div&gt;
+    &lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingpercentadjustlengthlineheightexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingpercentadjustlengthlineheightexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-length-line-height-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/percent-adjust-length-line-height-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-length-line-height-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-length-line-height-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+Tests length line-height adjustment for percentage -webkit-text-size-adjust values.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS computedLineHeight is '24px'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingpercentadjustlengthlineheighthtmlfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingpercentadjustlengthlineheighthtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-length-line-height.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/percent-adjust-length-line-height.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-length-line-height.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-length-line-height.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+    &lt;meta name=&quot;viewport&quot; content=&quot;user-scalable=no, width=320&quot;&gt;
+    &lt;title&gt;&amp;lt;rdar://problem/6646628&amp;gt; Text Autosizing: Overlapping text in message&lt;/title&gt;
+    &lt;style&gt;
+    body {
+        font-size: 14px;
+        line-height: 16px;
+    }
+    html {
+        -webkit-text-size-adjust: 150%;
+    }
+    &lt;/style&gt;
+    &lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+    &lt;script&gt;
+    if (window.testRunner)
+        window.testRunner.setTextAutosizingEnabled(true);
+    &lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    &lt;p id=&quot;lorem&quot;&gt;This text should have a decent spacing between the lines. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ante orci, posuere at aliquam eget, ornare ut sapien. Praesent commodo volutpat auctor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus interdum tincidunt pulvinar. Donec nec libero eros. Morbi facilisis lacus quis mi mattis quis pretium velit fringilla. Integer ipsum metus, pretium et tincidunt eget, commodo vel nibh. Cras feugiat lorem et velit interdum eu luctus dui gravida. Nullam nec gravida orci. Vestibulum quis imperdiet nibh. Vivamus tincidunt erat ac risus egestas mattis.&lt;/p&gt;
+    &lt;script&gt;
+    description(&quot;Tests length line-height adjustment for percentage -webkit-text-size-adjust values.&quot;);
+    var p = document.getElementById(&quot;lorem&quot;);
+    computedLineHeight = window.getComputedStyle(p)['line-height'];
+    shouldBe(&quot;computedLineHeight&quot;, &quot;'24px'&quot;);
+    p.remove();
+    successfullyParsed = true;
+    &lt;/script&gt;
+    &lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingpercentadjustnumberlineheightexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingpercentadjustnumberlineheightexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-number-line-height-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/percent-adjust-number-line-height-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-number-line-height-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-number-line-height-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+Tests number line-height is adjusted with percentage -webkit-text-size-adjust values.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS testedLineHeight is expectedLineHeight
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingpercentadjustnumberlineheighthtmlfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingpercentadjustnumberlineheighthtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-number-line-height.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/percent-adjust-number-line-height.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-number-line-height.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-number-line-height.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+    &lt;meta name=&quot;viewport&quot; content=&quot;user-scalable=no, width=320&quot;&gt;
+    &lt;title&gt;&amp;lt;rdar://problem/6646628&amp;gt; Text Autosizing: Overlapping text in message&lt;/title&gt;
+    &lt;style&gt;
+    #expected {
+        font-size: 10px;
+        line-height: 1.5;
+        -webkit-text-size-adjust: 100%;
+    }
+    #tested {
+        font-size: 20px;
+        line-height: 1.5;
+        -webkit-text-size-adjust: 50%;
+    }
+    &lt;/style&gt;
+    &lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+    &lt;script&gt;
+    if (window.testRunner)
+        window.testRunner.setTextAutosizingEnabled(true);
+    &lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    &lt;p id=&quot;expected&quot;&gt;This text should have a decent spacing between the lines. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ante orci, posuere at aliquam eget, ornare ut sapien. Praesent commodo volutpat auctor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus interdum tincidunt pulvinar. Donec nec libero eros. Morbi facilisis lacus quis mi mattis quis pretium velit fringilla. Integer ipsum metus, pretium et tincidunt eget, commodo vel nibh. Cras feugiat lorem et velit interdum eu luctus dui gravida. Nullam nec gravida orci. Vestibulum quis imperdiet nibh. Vivamus tincidunt erat ac risus egestas mattis.&lt;/p&gt;
+    &lt;p id=&quot;tested&quot;&gt;This text should have a decent spacing between the lines. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ante orci, posuere at aliquam eget, ornare ut sapien. Praesent commodo volutpat auctor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus interdum tincidunt pulvinar. Donec nec libero eros. Morbi facilisis lacus quis mi mattis quis pretium velit fringilla. Integer ipsum metus, pretium et tincidunt eget, commodo vel nibh. Cras feugiat lorem et velit interdum eu luctus dui gravida. Nullam nec gravida orci. Vestibulum quis imperdiet nibh. Vivamus tincidunt erat ac risus egestas mattis.&lt;/p&gt;
+    &lt;script&gt;
+    description(&quot;Tests number line-height is adjusted with percentage -webkit-text-size-adjust values.&quot;);
+    var expected = document.getElementById(&quot;expected&quot;);
+    var tested = document.getElementById(&quot;tested&quot;);
+    expectedLineHeight = window.getComputedStyle(expected)['line-height'];
+    testedLineHeight = window.getComputedStyle(tested)['line-height'];
+    shouldBe(&quot;testedLineHeight&quot;, &quot;expectedLineHeight&quot;);
+    expected.remove();
+    tested.remove();
+    successfullyParsed = true;
+    &lt;/script&gt;
+    &lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingpercentadjustpercentlineheightexpectedtxtfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingpercentadjustpercentlineheightexpectedtxt"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-percent-line-height-expected.txt (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/percent-adjust-percent-line-height-expected.txt) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-percent-line-height-expected.txt                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-percent-line-height-expected.txt        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+Tests percentage line-height is not adjusted with percentage -webkit-text-size-adjust values.
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS testedLineHeight is expectedLineHeight
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimtextautosizingpercentadjustpercentlineheighthtmlfromrev167368trunkLayoutTestsplatformiphonesimulatortextautosizingpercentadjustpercentlineheighthtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-percent-line-height.html (from rev 167368, trunk/LayoutTests/platform/iphone-simulator/text-autosizing/percent-adjust-percent-line-height.html) (0 => 167369)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-percent-line-height.html                                (rev 0)
+++ trunk/LayoutTests/platform/ios-sim/text-autosizing/percent-adjust-percent-line-height.html        2014-04-16 18:51:49 UTC (rev 167369)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+    &lt;meta name=&quot;viewport&quot; content=&quot;user-scalable=no, width=320&quot;&gt;
+    &lt;title&gt;&amp;lt;rdar://problem/12607898&amp;gt; incorrect behavior of -webkit-text-size-adjust in UIWebView on iOS6&lt;/title&gt;
+    &lt;style&gt;
+    #expected {
+        font-size: 10px;
+        line-height: 150%;
+        -webkit-text-size-adjust: 100%;
+    }
+    #tested {
+        font-size: 20px;
+        line-height: 150%;
+        -webkit-text-size-adjust: 50%;
+    }
+    &lt;/style&gt;
+    &lt;script src=&quot;../../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+    &lt;script&gt;
+    if (window.testRunner)
+        window.testRunner.setTextAutosizingEnabled(true);
+    &lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+    &lt;p id=&quot;expected&quot;&gt;This text should have a decent spacing between the lines. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ante orci, posuere at aliquam eget, ornare ut sapien. Praesent commodo volutpat auctor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus interdum tincidunt pulvinar. Donec nec libero eros. Morbi facilisis lacus quis mi mattis quis pretium velit fringilla. Integer ipsum metus, pretium et tincidunt eget, commodo vel nibh. Cras feugiat lorem et velit interdum eu luctus dui gravida. Nullam nec gravida orci. Vestibulum quis imperdiet nibh. Vivamus tincidunt erat ac risus egestas mattis.&lt;/p&gt;
+    &lt;p id=&quot;tested&quot;&gt;This text should have a decent spacing between the lines. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ante orci, posuere at aliquam eget, ornare ut sapien. Praesent commodo volutpat auctor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vivamus interdum tincidunt pulvinar. Donec nec libero eros. Morbi facilisis lacus quis mi mattis quis pretium velit fringilla. Integer ipsum metus, pretium et tincidunt eget, commodo vel nibh. Cras feugiat lorem et velit interdum eu luctus dui gravida. Nullam nec gravida orci. Vestibulum quis imperdiet nibh. Vivamus tincidunt erat ac risus egestas mattis.&lt;/p&gt;
+    &lt;script&gt;
+    description(&quot;Tests percentage line-height is not adjusted with percentage -webkit-text-size-adjust values.&quot;);
+    var expected = document.getElementById(&quot;expected&quot;);
+    var tested = document.getElementById(&quot;tested&quot;);
+    expectedLineHeight = window.getComputedStyle(expected)['line-height'];
+    testedLineHeight = window.getComputedStyle(tested)['line-height'];
+    shouldBe(&quot;testedLineHeight&quot;, &quot;expectedLineHeight&quot;);
+    expected.remove();
+    tested.remove();
+    successfullyParsed = true;
+    &lt;/script&gt;
+    &lt;script src=&quot;../../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre>
</div>
</div>

</body>
</html>