Commit c0a3161d authored by Glenn Adams's avatar Glenn Adams

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.
This diff is collapsed.
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