Commit c0a3161d authored by Glenn Adams's avatar Glenn Adams
Browse files

Populate level 3 cors tests.

parent 6d73ec45
......@@ -344,7 +344,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML Canvas 2D Context</h1>
<p class="no-num no-toc subline">Editor's Draft 19 October 2014</p>
<p class="no-num no-toc subline">Editor's Draft 20 October 2014</p>
</header>
<dl>
<dt>Latest Published Version:</dt>
......
Sun, 19 Oct 2014 21:10:09 GMT
\ No newline at end of file
Mon, 20 Oct 2014 18:40:16 GMT
\ No newline at end of file
......@@ -5,5 +5,16 @@
"local": "cors.html",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers3": []
"helpers3": [
"ProtocolCORS"
],
"crossDomainSupport": true,
"tests": [
{
"name": "ProtocolCORS",
"helper": "ProtocolCORS",
"code": "run(t)",
"async": true
}
]
}
"use strict";
function run(t) {
var defProperties = t.properties.def;
var url = CROSSDOMAIN + './resources/check-cors.py';
test(function() {
var xhr = new XMLHttpRequest();
xhr.open('GET', url + '?allow=1', false);
xhr.send();
assert_true(JSON.parse(xhr.response));
}, defProperties.expandedName + '-test-crossorigin-allowed');
test(function() {
var xhr = new XMLHttpRequest();
xhr.open('GET', url + '?allow=0', false);
assert_throws(null, function() { xhr.send(); }, 'must throw NetworkError:');
}, defProperties.expandedName + '-test-crossorigin-denied');
t.done();
}
def main(request, response):
response.headers.set("Content-Type", "text/plain")
origin = request.headers.get("origin")
if origin is not None:
allow = request.GET.first("allow")
if allow == "1":
response.headers.set("Access-Control-Allow-Origin", origin)
body = "true"
else:
body = "false"
else:
body = "false"
return body
......@@ -56,7 +56,7 @@
</p>
<h1 class="p-name no-ref" id=title>CSS Animations Level 1</h1>
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
<span class=dt-updated><span class=value-title title=20141016>16 October 2014</span></span></span></h2>
<span class=dt-updated><span class=value-title title=20141020>20 October 2014</span></span></span></h2>
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css3-animations/>http://dev.w3.org/csswg/css3-animations/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css3-animations/>http://www.w3.org/TR/css3-animations/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css3-animations/>http://dev.w3.org/csswg/css3-animations/</a><dt>Previous Versions:<dd><a href=http://www.w3.org/TR/2013/WD-css3-animations-20130219/ rel=previous>http://www.w3.org/TR/2013/WD-css3-animations-20130219/</a><dd><a href=http://www.w3.org/TR/2012/WD-css3-animations-20120403/ rel=previous>http://www.w3.org/TR/2012/WD-css3-animations-20120403/</a>
<dt>Feedback:</dt>
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-animations%5D%20feedback">www-style@w3.org</a>
......@@ -248,11 +248,11 @@ Animations</span><a class=self-link href=#animations></a></h2>
identifiers in the computed value of the <a class=property data-link-type=propdesc href=#propdef-animation-name title=animation-name>animation-name</a> property and the
animation uses a valid @keyframes rule. Once an
animation has started it continues until it ends or the <a class=property data-link-type=propdesc href=#propdef-animation-name title=animation-name>animation-name</a> is
removed. Changing the values of the animation properties while the animation
is running has no effect on the amount of time elapsed since the animation
started running i.e. once the animation is running, updates to <a class=property data-link-type=propdesc href=#propdef-animation-delay title=animation-delay>animation-delay</a>
have no effect. The remainder of the animation runs according to the new
animation property values.
removed. Changing the values of animation properties while the animation
is running has no effect on the amount of time that has elapsed since the
animation started running i.e. once the animation is running, updates to
<a class=property data-link-type=propdesc href=#propdef-animation-delay title=animation-delay>animation-delay</a> have no effect. The remainder of the animation runs
according to the new animation property values.
<p> Note also that changing the value
of <a class=property data-link-type=propdesc href=#propdef-animation-name title=animation-name>animation-name</a> does not necessarily restart an animation (e.g., if a list
......@@ -572,9 +572,10 @@ The <a class=property data-link-type=propdesc href=#propdef-animation-timing-fun
ease in at the start of its second iteration,
and ease out again as it approaches the end of the animation.
<p class=note> Note: Unlike other animation properties,
<a class=property data-link-type=propdesc href=#propdef-animation-timing-function title=animation-timing-function>animation-timing-function</a> has an effect when specified on an individual keyframe.
See <a href=#timing-functions section=""></a> for more detail on this.
<p> When specified in a keyframe, <a class=property data-link-type=propdesc href=#propdef-animation-timing-function title=animation-timing-function>animation-timing-function</a> defines the progression of the
animation between the keyframe and the next keyframe in sorted keyframe selector order, or
the end of the animation if no other keyframe is defined. The specified timing function will
apply over this interval independently of the animation’s current direction.
<h3 class="heading settled heading" data-level=4.5 id=animation-iteration-count><span class=secno>4.5 </span><span class=content>
The <a class=property data-link-type=propdesc href=#propdef-animation-iteration-count title=animation-iteration-count>animation-iteration-count</a> property</span><a class=self-link href=#animation-iteration-count></a></h3>
......
Thu, 16 Oct 2014 21:30:03 GMT
\ No newline at end of file
Mon, 20 Oct 2014 17:30:03 GMT
\ No newline at end of file
......@@ -348,7 +348,7 @@
 
<h1 id="big-title">HTML5</h1>
<p class="no-num no-toc subline">A vocabulary and associated APIs for HTML and XHTML</p>
<p class="no-num no-toc subline">Editor's Draft 19 October 2014</p>
<p class="no-num no-toc subline">Editor's Draft 20 October 2014</p>
</header>
<dl>
<dt>Latest Published Version:</dt>
......@@ -472,7 +472,7 @@
<p>The W3C <a href="http://www.w3.org/html/wg/">HTML Working
Group</a> is the W3C working group responsible for this
specification's progress.
This specification is the 19 October 2014 Editor's Draft.
This specification is the 20 October 2014 Editor's Draft.
This specification is intended to become a W3C Recommendation.
</p>
Sun, 19 Oct 2014 21:12:30 GMT
\ No newline at end of file
Mon, 20 Oct 2014 18:43:05 GMT
\ No newline at end of file
This diff is collapsed.
......@@ -9,7 +9,7 @@
<hgroup>
<h1 class="allcaps">URL</h1>
<h2>Living Standard — Last Updated 17 October 2014</h2>
<h2>Living Standard — Last Updated 20 October 2014</h2>
</hgroup>
<dl>
......@@ -1691,6 +1691,41 @@ optionally with an <a class="external" data-anolis-spec="encoding" href="https:/
<li><p>Return <var title="">url</var>.
</ol>
<hr>
<p>To <dfn id="set-the-username">set the username</dfn> given a <var title="">url</var> and
<var title="">username</var>, run these steps:
<ol>
<li><p>Set <var title="">url</var>'s <a href="#concept-url-username" title="concept-url-username">username</a> to the
empty string.
<li><p>For each code point in <var title="">username</var>,
<a href="#utf-8-percent-encode">utf-8 percent encode</a> it using the <a href="#username-encode-set">username encode set</a>, and
append the result to <var title="">url</var>'s
<a href="#concept-url-username" title="concept-url-username">username</a>.
</ol>
<p>To <dfn id="set-the-password">set the password</dfn> given a <var title="">url</var> and
<var title="">password</var>, run these steps:
<ol>
<li><p>If <var title="">password</var> is the empty string, set <var title="">url</var>'s
<a href="#concept-url-password" title="concept-url-password">password</a> to null.
<li>
<p>Otherwise, run these substeps:
<ol>
<li><p>Set <var title="">url</var>'s <a href="#concept-url-password" title="concept-url-password">password</a> to
the empty string.
<li><p>For each code point in the given value, <a href="#utf-8-percent-encode">utf-8 percent encode</a> it
using the <a href="#password-encode-set">password encode set</a>, and append the result to
<var title="">url</var>'s <a href="#concept-url-password" title="concept-url-password">password</a>.
</ol>
</ol>
<h3 id="url-serializing"><span class="secno">5.3 </span>URL serializing</h3>
......@@ -2111,31 +2146,41 @@ concept only relevant for HTML.
<a href="#concept-urlutils-set-the-input" title="concept-URLUtils-set-the-input">set the input</a> algorithms to set
<a href="#concept-urlutils-input" title="concept-URLUtils-input">input</a>, <a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a>, and
<a href="#concept-urlutils-query-object" title="concept-URLUtils-query-object">query object</a>. To
<dfn id="concept-urlutils-set-the-input" title="concept-URLUtils-set-the-input">set the input</dfn> run these steps:
<dfn id="concept-urlutils-set-the-input" title="concept-URLUtils-set-the-input">set the input</dfn> given <var title="">input</var>
and optionally a <var title="">url</var>, run these steps:
<ol>
<li><p>Set <a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a> to null.
<li><p>If the given value is null, set <a href="#concept-urlutils-input" title="concept-URLUtils-input">input</a> to
the empty string.
<li><p>If <var title="">url</var> is given, set <a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a>
to <var title="">url</var> and <a href="#concept-urlutils-input" title="concept-URLUtils-input">input</a> to
<var title="">input</var>.
<li>
<p>Otherwise, run these substeps:
<ol>
<li><p>Set <a href="#concept-urlutils-input" title="concept-URLUtils-input">input</a> to the given value.
<li><p>Set <a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a> to null.
<li><p>Let <var title="">url</var> be the result of running the
<a href="#concept-url-parser" title="concept-url-parser">URL parser</a> on
<a href="#concept-urlutils-input" title="concept-URLUtils-input">input</a> with
<a href="#concept-base-url" title="concept-base-url">base URL</a> being the result of running
<a href="#concept-urlutils-get-the-base" title="concept-URLUtils-get-the-base">get the base</a> and
<a href="#concept-urlutils-query-encoding" title="concept-URLUtils-query-encoding">query encoding</a> as
<var>encoding override</var>.
<!-- support blob URLs at this level -->
<li><p>If <var title="">url</var> is not failure, set
<a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a> to <var title="">url</var>.
<li><p>If <var title="">input</var> is null, set
<a href="#concept-urlutils-input" title="concept-URLUtils-input">input</a> to the empty string.
<li>
<p>Otherwise, run these subsubsteps:
<ol>
<li><p>Set <a href="#concept-urlutils-input" title="concept-URLUtils-input">input</a> to <var title="">input</var>.
<li><p>Let <var title="">url</var> be the result of running the
<a href="#concept-url-parser" title="concept-url-parser">URL parser</a> on
<a href="#concept-urlutils-input" title="concept-URLUtils-input">input</a> with
<a href="#concept-base-url" title="concept-base-url">base URL</a> being the result of running
<a href="#concept-urlutils-get-the-base" title="concept-URLUtils-get-the-base">get the base</a> and
<a href="#concept-urlutils-query-encoding" title="concept-URLUtils-query-encoding">query encoding</a> as
<var>encoding override</var>.
<!-- support blob URLs at this level -->
<li><p>If <var title="">url</var> is not failure, set
<a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a> to <var title="">url</var>.
</ol>
</ol>
<li><p>Let <var title="">query</var> be <a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a>'s
......@@ -2176,22 +2221,28 @@ concept only relevant for HTML.
constructor, when invoked, must run these steps:
<ol>
<li><p><a href="#concept-basic-url-parser" title="concept-basic-url-parser">Basic URL parse</a> <var title="">base</var>
and set <var title="">base</var> to the result of that algorithm.
<li><p>Set <var title="">base</var> to the result of running the
<a href="#concept-basic-url-parser" title="concept-basic-url-parser">base URL parser</a> on <var title="">base</var>.
<li><p>If <var title="">base</var> is failure, <a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-throw">throw</a> a
<code title="">TypeError</code> exception.
<li><p>Set <var title="">url</var> to the result of running the
<a href="#concept-basic-url-parser" title="concept-basic-url-parser">basic URL parser</a> on <var title="">input</var>
with <var title="">base</var>.
<li><p>If <var title="">url</var> is failure, <a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-throw">throw</a> a
<code title="">TypeError</code> exception.
<li><p>Let <var title="">result</var> be a new <a href="#url"><code>URL</code></a> object.
<li><p>Let <var title="">result</var>'s
<a href="#concept-urlutils-get-the-base" title="concept-URLUtils-get-the-base">get the base</a> return <var title="">base</var>.
<a href="#concept-urlutils-get-the-base" title="concept-URLUtils-get-the-base">get the base</a> return
<var title="">base</var>.
<li><p>Run <var title="">result</var>'s
<a href="#concept-urlutils-set-the-input" title="concept-URLUtils-set-the-input">set the input</a> for <var title="">url</var>.
<li><p>If <var title="">result</var>'s <a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a> is null,
<a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-throw">throw</a> a <code title="">TypeError</code> exception.
<a href="#concept-urlutils-set-the-input" title="concept-URLUtils-set-the-input">set the input</a> given the empty string
and <var title="">url</var>.
<li><p>Return <var title="">result</var>.
</ol>
......@@ -2286,19 +2337,8 @@ these steps:
<li><p>If <var title="">url</var> is failure, <a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-throw">throw</a> a
<code title="">TypeError</code> exception.
<li><p>Set <a href="#concept-urlutils-input" title="concept-URLUtils-input">input</a> to <var title="">input</var>.
<li><p>Set <a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a> to <var title="">url</var>.
<li><p>Let <var title="">query</var> be the empty string if
<a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a>'s
<a href="#concept-url-query" title="concept-url-query">query</a> is null, and
<a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a>'s
<a href="#concept-url-query" title="concept-url-query">query</a> otherwise.
<li><p>Set <a href="#concept-urlutils-query-object" title="concept-URLUtils-query-object">query object</a>'s
<a href="#concept-urlsearchparams-list" title="concept-URLSearchParams-list">list</a> to the result of
<a href="#concept-urlencoded-string-parser" title="concept-urlencoded-string-parser">parsing</a> <var title="">query</var>.
<li><p>Run <a href="#concept-urlutils-set-the-input" title="concept-URLUtils-set-the-input">set the input</a> given
<var title="">input</var> and <var title="">url</var>.
</ol>
<li>
......@@ -2384,13 +2424,8 @@ run these steps:
<li><p>If <a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a> is null, or its
<a href="#relative-flag">relative flag</a> is unset, terminate these steps.
<li><p>Set <a href="#concept-url-username" title="concept-url-username">username</a> to the empty
string.
<li><p>For each code point in the given value,
<a href="#utf-8-percent-encode">utf-8 percent encode</a> it using the
<a href="#username-encode-set">username encode set</a>, and append the result to
<a href="#concept-url-username" title="concept-url-username">username</a>.
<li><p><a href="#set-the-username">Set the username</a> given <a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a>
and the given value.
<li><p>Run the <a href="#pre-update-steps">pre-update steps</a>.
</ol>
......@@ -2413,15 +2448,8 @@ run these steps:
<li><p>If <a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a> is null, or its
<a href="#relative-flag">relative flag</a> is unset, terminate these steps.
<li><p>If the given value is the empty string, set
<a href="#concept-url-password" title="concept-url-password">password</a> to null, run the
<a href="#pre-update-steps">pre-update steps</a>, and terminate these steps.
<li><p>Set <a href="#concept-url-password" title="concept-url-password">password</a> to the empty string.
<li><p>For each code point in the given value, <a href="#utf-8-percent-encode">utf-8 percent encode</a> it
using the <a href="#password-encode-set">password encode set</a>, and append the result to
<a href="#concept-url-password" title="concept-url-password">password</a>.
<li><p><a href="#set-the-password">Set the password</a> given <a href="#concept-urlutils-url" title="concept-URLUtils-url">url</a>
and the given value.
<li><p>Run the <a href="#pre-update-steps">pre-update steps</a>.
</ol>
......
Fri, 17 Oct 2014 13:14:04 GMT
\ No newline at end of file
Mon, 20 Oct 2014 17:10:56 GMT
\ No newline at end of file
Sun, 19 Oct 2014 21:24:01 GMT
\ No newline at end of file
Mon, 20 Oct 2014 18:56:13 GMT
\ No newline at end of file
import pprint
def main(request, response):
headers = [("Content-Type", "text/plain")]
ident = request.GET.first('ident', 'test')
......
<!-- Copyright (C) 2014, Cable Television Laboratories, Inc. & Skynav, Inc. -->
<!-- DO NOT EDIT! This test was generated by $(CVP2TS)/tools/level2/generate/generate.js. -->
<!doctype html>
<meta charset='utf-8'>
<title>Test ProtocolCORS</title>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src='/tools/common/level3.js'></script>
<script src='/tools/common/crossdomain.js?pipe=sub'></script>
<script src='./helpers/ProtocolCORS.js'></script>
<script type='text/plain' id='testDef'>
{"name":"ProtocolCORS","helper":"ProtocolCORS","code":"run(t)","async":true}
</script>
<h1>Test ProtocolCORS Support</h1>
<div id='log'></div>
<script>
level3Async('cors', JSON.parse(document.getElementById('testDef').textContent), function(t){return run(t);});
</script>
"use strict";
function run(t) {
var defProperties = t.properties.def;
var url = CROSSDOMAIN + './resources/check-cors.py';
test(function() {
var xhr = new XMLHttpRequest();
xhr.open('GET', url + '?allow=1', false);
xhr.send();
assert_true(JSON.parse(xhr.response));
}, defProperties.expandedName + '-test-crossorigin-allowed');
test(function() {
var xhr = new XMLHttpRequest();
xhr.open('GET', url + '?allow=0', false);
assert_throws(null, function() { xhr.send(); }, 'must throw NetworkError:');
}, defProperties.expandedName + '-test-crossorigin-denied');
t.done();
}
def main(request, response):
response.headers.set("Content-Type", "text/plain")
origin = request.headers.get("origin")
if origin is not None:
allow = request.GET.first("allow")
if allow == "1":
response.headers.set("Access-Control-Allow-Origin", origin)
body = "true"
else:
body = "false"
else:
body = "false"
return body
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment