Permalink
Browse files

Bug 25059: correct references to number whi isnt

  • Loading branch information...
1 parent 17d42ba commit 8eaecedef5a99530ed90be6ec19993eb8e225e2e @AutomatedTester committed Mar 14, 2014
Showing with 40 additions and 40 deletions.
  1. +2 −2 03_capabilities.html
  2. +2 −2 06_controlling_windows.html
  3. +3 −3 07_switching.html
  4. +4 −4 11_ecmascript.html
  5. +1 −1 12_cookies.html
  6. +1 −1 13_timeouts.html
  7. +7 −7 14_user_input.html
  8. +20 −20 webdriver-spec.html
View
4 03_capabilities.html
@@ -15,7 +15,7 @@
If the value is a boolean, this function MUST return that boolean value. If
the value is <code>null</code>, an empty string or a 0 then this method MUST return
false.</dd>
- <dt>(DOMString or boolean or number)? get(DOMString capabilityName)</dt>
+ <dt>(DOMString or boolean or long)? get(DOMString capabilityName)</dt>
<dd>Get the value of the key matching capabilityName in the underlying <code>capabilities</code> or <code>null</code> if no value is defined.</dd>
</dl>
<p>A <code>Capabilities</code> instance MUST be immutable. If a mutable <code>Capabilities</code> instance is required, then the <code>MutableCapabilities</code> MUST be used instead.</p>
@@ -25,7 +25,7 @@
<section>
<h3>MutableCapabilities</h3>
<dl class="idl" title="interface MutableCapabilities : Capabilities">
- <dt>void set(DOMString capabilityName, (DOMString or boolean or number)? value)</dt>
+ <dt>void set(DOMString capabilityName, (DOMString or boolean or long)? value)</dt>
<dd>Set the value of the given <code>capabilityName</code> to the given <code>value</code>. If the value is not a boolean, numerical type, a DOMString or the null value a <code>WebDriverException</code> SHOULD be thrown.</dd>
</dl>
View
4 06_controlling_windows.html
@@ -61,9 +61,9 @@ <h2 name="iterating-over-windows">Iterating Over Windows</h2>
<p>If a request is made to resize a window to a size which cannot be performed (e.g. the browser has a minimum, or fixed window size, or the operating system does not support resizing windows at all as is the case in many phone OSs), an <code><a href="#status-unsupported-operation">unsupported operation</a></code> status code MUST be returned.</p>
<p>After <code>setWindowSize</code>, the browser window MUST NOT be in the maximised state.</p>
<dl class='parameters'>
- <dt>number width</dt>
+ <dt>unsigned short width</dt>
<dd>The "width" value refer to the javascript "window.outerwidth" property. For those browsers that do not support these properties, these represent the width of the whole browser window including window chrome and window resizing borders/handles.</dd>
- <dt>number height</dt>
+ <dt>unsigned short height</dt>
<dd>The "height" value refer to the javascript "window.outerheight" property. For those browsers that do not support these properties, these represent the height of the whole browser window including window chrome and window resizing borders/handles.</dd>
</dl>
</dd>
View
6 07_switching.html
@@ -53,13 +53,13 @@
</tr>
</table>
<dl class='parameters'>
- <dt><a>WebElement</a> or number? id</dt>
+ <dt><a>WebElement</a> or unsigned short? id</dt>
<dd>The identifier used for a frame.</dd>
</dl>
- <p>The "switchToFrame" command is used to select which frame within a window MUST be used as the context for handling future commands. All frame switching is taken from the current context from which commands are currently being handled. The "<code>id</code>" parameter can be a number or a <a>WebElement</a>. WebDriver implementations MUST determine which frame to select using the following algorithm:
+ <p>The "switchToFrame" command is used to select which frame within a window MUST be used as the context for handling future commands. All frame switching is taken from the current context from which commands are currently being handled. The "<code>id</code>" parameter can be an unsigned short or a <a>WebElement</a>. WebDriver implementations MUST determine which frame to select using the following algorithm:
<ol>
- <li>If the "id" is a number the current context is set to the equivalent of the JS expression "window.frames[n]" where "n" is the number and "window" is the Document window represented by the current context.</li>
+ <li>If the "id" is a unsigned short the current context is set to the equivalent of the JS expression "window.frames[n]" where "n" is the number and "window" is the Document window represented by the current context.</li>
<li>If the "id" is null, the current context is set to the <a href='#default-content'>default content</a>.</li>
<li>If the "id" represents a <a>WebElement</a>, and the corresponding Document element represents a FRAME or an IFRAME, and the <a>WebElement</a> is part of the current context, the "window" property of that Document element becomes the current context.</li>
</ol>
View
8 11_ecmascript.html
@@ -13,7 +13,7 @@
<section>
<h2>Javascript Command Parameters</h2>
- <div class='idl' title='typedef number or boolean or DOMString or WebElement or Object or sequence<Argument> Argument'></div>
+ <div class='idl' title='typedef long or boolean or DOMString or WebElement or Object or sequence<Argument> Argument'></div>
<dl class="idl" title="interface JavascriptCommandParameters">
<dt>readonly attribute DOMString script</dt>
@@ -28,7 +28,7 @@
<p id="JS-args-preprocess">For each index, <code>index</code> in <code>args</code>, if <code>args[index]</code> is...
<ol>
- <li>a number, boolean, DOMString, or <code>null</code>, then let <code>args[index] = args[index]</code>.</li>
+ <li>a long, boolean, DOMString, or <code>null</code>, then let <code>args[index] = args[index]</code>.</li>
<li>an array, then recursively apply this algorithm to <code>args[index]</code> and assign the result to <code>args[index]</code>.</li>
<li>a dictionary, then recursively apply this algorithm to each value in <code>args[index]</code> and assign the result to <code>args[index]</code>.</li>
<li>a <a href="#elements">WebElement</a>, then:
@@ -74,7 +74,7 @@
<li>If <code>result</code> is:
<ol>
<li><code>undefined</code> or <code>null</code>, return <code> null</code>.
- <li>a number, boolean, or DOMString, return <code>result</code>.
+ <li>a long, boolean, or DOMString, return <code>result</code>.
<li>a Document Element, then return the corresponding WebElement for that Document Element.
<!-- Should there be a recursion limit? -->
<li>a <code>Sequence &lt;Node&gt; nodes</code>, then return the result of recursively applying this algorithm to <code>result</code>.
@@ -134,7 +134,7 @@
<li>If <code>result</code> is:
<ol>
<li><code>undefined</code> or <code>null</code>, return <code> null</code>.</li>
- <li>a number, boolean, or DOMString, return <code>result</code>.</li>
+ <li>a long, boolean, or DOMString, return <code>result</code>.</li>
<li>a Document Element, then return the corresponding WebElement for that Document Element.</li>
<!-- Should there be a recursion limit? -->
<li>a <code>Sequence &lt;Node> Nodes</code>, then return the result by recursively applying this algorithm to <code>result</code>. WebDriver implementations SHOULD limit the recursion depth.</li>
View
2 12_cookies.html
@@ -18,7 +18,7 @@
<dd>The cookie path. This SHOULD be set or MUST be the null value if unknown.</dd>
<dt>DOMString domain</dt>
<dd>The domain the cookie is visible too. This SHOULD be set or MUST be the null value if unknown.</dd>
- <dt>number expiry</dt>
+ <dt>Date expiry</dt>
<dd>When the cookie expires, specified in seconds since midnight, January 1, 1970 UTC. This SHOULD be set or MUST be -1 if unknown.</dd>
<dt>boolean httpOnly</dt>
<dd>True if this represents an HTTP-Only cookie, false otherwise. If this value is missing, local ends MUST interpret this as being false.</dd>
View
2 13_timeouts.html
@@ -16,7 +16,7 @@ <h2 id="timeouts">Timeouts</h2>
<dl class='parameters'>
<dt>DOMString type</dt>
<dd>The type of operation to set the timeout for. Valid values are: "implicit", "page load", "script"</dd>
- <dt>number ms</dt>
+ <dt>unsigned short ms</dt>
<dd>The amount of time, in milliseconds, that time-limited commands are permitted to run.</dd>
</dl>
</dd>
View
14 14_user_input.html
@@ -141,9 +141,9 @@ <h2 id="interactable">Interactable elements</h2>
<dl class='parameters'>
<dt>WebElement id</dt>
<dd>The ID of the <a>WebElement</a> on which to operate.</dd>
- <dt>optional number x</dt>
+ <dt>optional Long x</dt>
<dd>The x-coordinate offset to send the touch event, from the top-left coordinate of the given <a>WebElement</a>.</dd>
- <dt>optional number y</dt>
+ <dt>optional Long y</dt>
<dd>The y-coordinate offset to send the touch event, from the top-left coordinate of the given <a>WebElement</a>.</dd>
</dl>
</dd>
@@ -168,9 +168,9 @@ <h2 id="interactable">Interactable elements</h2>
<dl class="parameters">
<dt>WebElement id</dt>
<dd>The ID of the <a>WebElement</a> on which to operate.</dd>
- <dt>optional number x</dt>
+ <dt>optional Long x</dt>
<dd>The x-coordinate offset to send the touch event, from the top-left coordinate of the given <a>WebElement</a></dd>
- <dt>optional number y</dt>
+ <dt>optional Long y</dt>
<dd>The y-coordinate offset to send the touch event, from the top-left coordinate of the given <a>WebElement</a></dd>
</dl>
</dd>
@@ -195,11 +195,11 @@ <h2 id="interactable">Interactable elements</h2>
<dl class='parameters'>
<dt>WebElement id</dt>
<dd>The ID of the <a>WebElement</a> on which to operate.</dd>
- <dt>optional number x</dt>
+ <dt>optional Long x</dt>
<dd>The x-coordinate offset to send the touch event, from the top-left coordinate of the given <a>WebElement</a>.</dd>
- <dt>optional number y</dt>
+ <dt>optional Long y</dt>
<dd>The y-coordinate offset to send the touch event, from the top-left coordinate of the given <a>WebElement</a>.</dd>
- <dt>number? count</dt>
+ <dt>UnsignedShort? count</dt>
<dd>The number of taps that will be performed before returning to the local end. If <code>count</code> is null or no argument is passed in then 1 tap MUST be executed.</dd>
</dl>
</dd>
View
40 webdriver-spec.html
@@ -390,7 +390,7 @@
If the value is a boolean, this function MUST return that boolean value. If
the value is <code>null</code>, an empty string or a 0 then this method MUST return
false.</dd>
- <dt>(DOMString or boolean or number)? get(DOMString capabilityName)</dt>
+ <dt>(DOMString or boolean or long)? get(DOMString capabilityName)</dt>
<dd>Get the value of the key matching capabilityName in the underlying <code>capabilities</code> or <code>null</code> if no value is defined.</dd>
</dl>
<p>A <code>Capabilities</code> instance MUST be immutable. If a mutable <code>Capabilities</code> instance is required, then the <code>MutableCapabilities</code> MUST be used instead.</p>
@@ -400,7 +400,7 @@
<section>
<h3>MutableCapabilities</h3>
<dl class="idl" title="interface MutableCapabilities : Capabilities">
- <dt>void set(DOMString capabilityName, (DOMString or boolean or number)? value)</dt>
+ <dt>void set(DOMString capabilityName, (DOMString or boolean or long)? value)</dt>
<dd>Set the value of the given <code>capabilityName</code> to the given <code>value</code>. If the value is not a boolean, numerical type, a DOMString or the null value a <code>WebDriverException</code> SHOULD be thrown.</dd>
</dl>
@@ -769,9 +769,9 @@ <h2 name="iterating-over-windows">Iterating Over Windows</h2>
<p>If a request is made to resize a window to a size which cannot be performed (e.g. the browser has a minimum, or fixed window size, or the operating system does not support resizing windows at all as is the case in many phone OSs), an <code><a href="#status-unsupported-operation">unsupported operation</a></code> status code MUST be returned.</p>
<p>After <code>setWindowSize</code>, the browser window MUST NOT be in the maximised state.</p>
<dl class='parameters'>
- <dt>number width</dt>
+ <dt>unsigned short width</dt>
<dd>The "width" value refer to the javascript "window.outerwidth" property. For those browsers that do not support these properties, these represent the width of the whole browser window including window chrome and window resizing borders/handles.</dd>
- <dt>number height</dt>
+ <dt>unsigned short height</dt>
<dd>The "height" value refer to the javascript "window.outerheight" property. For those browsers that do not support these properties, these represent the height of the whole browser window including window chrome and window resizing borders/handles.</dd>
</dl>
</dd>
@@ -859,13 +859,13 @@ <h2 name="iterating-over-windows">Iterating Over Windows</h2>
</tr>
</table>
<dl class='parameters'>
- <dt><a>WebElement</a> or number? id</dt>
+ <dt><a>WebElement</a> or unsigned short? id</dt>
<dd>The identifier used for a frame.</dd>
</dl>
- <p>The "switchToFrame" command is used to select which frame within a window MUST be used as the context for handling future commands. All frame switching is taken from the current context from which commands are currently being handled. The "<code>id</code>" parameter can be a number or a <a>WebElement</a>. WebDriver implementations MUST determine which frame to select using the following algorithm:
+ <p>The "switchToFrame" command is used to select which frame within a window MUST be used as the context for handling future commands. All frame switching is taken from the current context from which commands are currently being handled. The "<code>id</code>" parameter can be an unsigned short or a <a>WebElement</a>. WebDriver implementations MUST determine which frame to select using the following algorithm:
<ol>
- <li>If the "id" is a number the current context is set to the equivalent of the JS expression "window.frames[n]" where "n" is the number and "window" is the Document window represented by the current context.</li>
+ <li>If the "id" is a unsigned short the current context is set to the equivalent of the JS expression "window.frames[n]" where "n" is the number and "window" is the Document window represented by the current context.</li>
<li>If the "id" is null, the current context is set to the <a href='#default-content'>default content</a>.</li>
<li>If the "id" represents a <a>WebElement</a>, and the corresponding Document element represents a FRAME or an IFRAME, and the <a>WebElement</a> is part of the current context, the "window" property of that Document element becomes the current context.</li>
</ol>
@@ -1267,7 +1267,7 @@ <h2 name="attributes-and-properties">Reading Attributes and Properties</h2>
<section>
<h2>Javascript Command Parameters</h2>
- <div class='idl' title='typedef number or boolean or DOMString or WebElement or Object or sequence<Argument> Argument'></div>
+ <div class='idl' title='typedef long or boolean or DOMString or WebElement or Object or sequence<Argument> Argument'></div>
<dl class="idl" title="interface JavascriptCommandParameters">
<dt>readonly attribute DOMString script</dt>
@@ -1282,7 +1282,7 @@ <h2 name="attributes-and-properties">Reading Attributes and Properties</h2>
<p id="JS-args-preprocess">For each index, <code>index</code> in <code>args</code>, if <code>args[index]</code> is...
<ol>
- <li>a number, boolean, DOMString, or <code>null</code>, then let <code>args[index] = args[index]</code>.</li>
+ <li>a long, boolean, DOMString, or <code>null</code>, then let <code>args[index] = args[index]</code>.</li>
<li>an array, then recursively apply this algorithm to <code>args[index]</code> and assign the result to <code>args[index]</code>.</li>
<li>a dictionary, then recursively apply this algorithm to each value in <code>args[index]</code> and assign the result to <code>args[index]</code>.</li>
<li>a <a href="#elements">WebElement</a>, then:
@@ -1328,7 +1328,7 @@ <h2 name="attributes-and-properties">Reading Attributes and Properties</h2>
<li>If <code>result</code> is:
<ol>
<li><code>undefined</code> or <code>null</code>, return <code> null</code>.
- <li>a number, boolean, or DOMString, return <code>result</code>.
+ <li>a long, boolean, or DOMString, return <code>result</code>.
<li>a Document Element, then return the corresponding WebElement for that Document Element.
<!-- Should there be a recursion limit? -->
<li>a <code>Sequence &lt;Node&gt; nodes</code>, then return the result of recursively applying this algorithm to <code>result</code>.
@@ -1388,7 +1388,7 @@ <h2 name="attributes-and-properties">Reading Attributes and Properties</h2>
<li>If <code>result</code> is:
<ol>
<li><code>undefined</code> or <code>null</code>, return <code> null</code>.</li>
- <li>a number, boolean, or DOMString, return <code>result</code>.</li>
+ <li>a long, boolean, or DOMString, return <code>result</code>.</li>
<li>a Document Element, then return the corresponding WebElement for that Document Element.</li>
<!-- Should there be a recursion limit? -->
<li>a <code>Sequence &lt;Node> Nodes</code>, then return the result by recursively applying this algorithm to <code>result</code>. WebDriver implementations SHOULD limit the recursion depth.</li>
@@ -1433,7 +1433,7 @@ <h2 name="attributes-and-properties">Reading Attributes and Properties</h2>
<dd>The cookie path. This SHOULD be set or MUST be the null value if unknown.</dd>
<dt>DOMString domain</dt>
<dd>The domain the cookie is visible too. This SHOULD be set or MUST be the null value if unknown.</dd>
- <dt>number expiry</dt>
+ <dt>Date expiry</dt>
<dd>When the cookie expires, specified in seconds since midnight, January 1, 1970 UTC. This SHOULD be set or MUST be -1 if unknown.</dd>
<dt>boolean httpOnly</dt>
<dd>True if this represents an HTTP-Only cookie, false otherwise. If this value is missing, local ends MUST interpret this as being false.</dd>
@@ -1485,7 +1485,7 @@ <h2 id="timeouts">Timeouts</h2>
<dl class='parameters'>
<dt>DOMString type</dt>
<dd>The type of operation to set the timeout for. Valid values are: "implicit", "page load", "script"</dd>
- <dt>number ms</dt>
+ <dt>unsigned short ms</dt>
<dd>The amount of time, in milliseconds, that time-limited commands are permitted to run.</dd>
</dl>
</dd>
@@ -1635,9 +1635,9 @@ <h2 id="interactable">Interactable elements</h2>
<dl class='parameters'>
<dt>WebElement id</dt>
<dd>The ID of the <a>WebElement</a> on which to operate.</dd>
- <dt>optional number x</dt>
+ <dt>optional Long x</dt>
<dd>The x-coordinate offset to send the touch event, from the top-left coordinate of the given <a>WebElement</a>.</dd>
- <dt>optional number y</dt>
+ <dt>optional Long y</dt>
<dd>The y-coordinate offset to send the touch event, from the top-left coordinate of the given <a>WebElement</a>.</dd>
</dl>
</dd>
@@ -1662,9 +1662,9 @@ <h2 id="interactable">Interactable elements</h2>
<dl class="parameters">
<dt>WebElement id</dt>
<dd>The ID of the <a>WebElement</a> on which to operate.</dd>
- <dt>optional number x</dt>
+ <dt>optional Long x</dt>
<dd>The x-coordinate offset to send the touch event, from the top-left coordinate of the given <a>WebElement</a></dd>
- <dt>optional number y</dt>
+ <dt>optional Long y</dt>
<dd>The y-coordinate offset to send the touch event, from the top-left coordinate of the given <a>WebElement</a></dd>
</dl>
</dd>
@@ -1689,11 +1689,11 @@ <h2 id="interactable">Interactable elements</h2>
<dl class='parameters'>
<dt>WebElement id</dt>
<dd>The ID of the <a>WebElement</a> on which to operate.</dd>
- <dt>optional number x</dt>
+ <dt>optional Long x</dt>
<dd>The x-coordinate offset to send the touch event, from the top-left coordinate of the given <a>WebElement</a>.</dd>
- <dt>optional number y</dt>
+ <dt>optional Long y</dt>
<dd>The y-coordinate offset to send the touch event, from the top-left coordinate of the given <a>WebElement</a>.</dd>
- <dt>number? count</dt>
+ <dt>UnsignedShort? count</dt>
<dd>The number of taps that will be performed before returning to the local end. If <code>count</code> is null or no argument is passed in then 1 tap MUST be executed.</dd>
</dl>
</dd>

0 comments on commit 8eaeced

Please sign in to comment.