Commit 8c233c48 authored by Glenn Adams's avatar Glenn Adams

Discriminate helper levels; add initial level 3 support.

parent 757093f4
......@@ -26,6 +26,6 @@
# tools
TOOLS_L1 = fetch extract parse index generate
TOOLS_L2 = fetch generate
TOOLS_L3 = fetch
TOOLS_L3 = fetch generate
TOOLS_L4 = fetch generate
......@@ -4,7 +4,7 @@
"local": "ac3.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": [
"helpers4": [
"MediaAC3AudioFormat"
],
"tests": [
......
......@@ -3,7 +3,7 @@
"source": "http://www.w3.org/html/wg/drafts/2dcontext/html5_canvas_CR/",
"levels": [ 1 ],
"local": "canvas2d.html",
"helpers": [
"helpers1": [
"CanvasPattern"
],
"instances": {
......
Sun, 19 Oct 2014 07:00:08 GMT
\ No newline at end of file
Sun, 19 Oct 2014 21:10:09 GMT
\ No newline at end of file
......@@ -5,5 +5,15 @@
"local": "rfc6265.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": []
"helpers3": [
"ProtocolCookies"
],
"tests": [
{
"name": "ProtocolCookies",
"helper": "ProtocolCookies",
"code": "run(t)",
"async": true
}
]
}
"use strict";
function run(t) {
var defProperties = t.properties.def;
t.done();
}
......@@ -5,5 +5,5 @@
"local": "cors.html",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": []
"helpers3": []
}
......@@ -5,5 +5,5 @@
"local": "csp.html",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": []
"helpers3": []
}
......@@ -8,7 +8,7 @@
"dontFetchReason": "specification is final",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": [],
"helpers2": [],
"properties": [
{
"name": "margin-top",
......
......@@ -5,7 +5,7 @@
"local": "cssanimation.html",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": [],
"helpers2": [],
"properties": [
{
"name": "animation-name",
......
......@@ -6,5 +6,6 @@
"dontFetch": true,
"dontFetchReason": "specification is final",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction"
"dontExtractReason": "requires manual property extraction",
"helpers2": []
}
......@@ -5,7 +5,7 @@
"local": "cssbg.html",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": [],
"helpers2": [],
"comments": "test extensions to css21, or initial value if no extension",
"properties": [
{
......
......@@ -7,7 +7,7 @@
"dontFetchReason": "specification is final",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": [],
"helpers2": [],
"comments": "test extensions to css21",
"properties": [
{
......
......@@ -6,7 +6,7 @@
"dontFetch": true,
"dontExtract": true,
"dontExtractReason": "extracted IDL edited to abstract unsupported IDL syntax",
"helpers": [
"helpers1": [
"FontFace"
],
"instances": {
......
......@@ -5,7 +5,7 @@
"local": "cssfonts.html",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": [],
"helpers2": [],
"comments": "test extensions to css21, or initial value if no extension",
"properties": [
{
......
......@@ -5,7 +5,7 @@
"local": "cssimage.html",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": [],
"helpers2": [],
"comments": "test extensions to css21, or initial value if no extension",
"properties": [
{
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Fri, 26 Sep 2014 21:40:03 GMT
\ No newline at end of file
Sun, 19 Oct 2014 18:45:06 GMT
\ No newline at end of file
......@@ -5,7 +5,7 @@
"local": "cssmulticol.html",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": [],
"helpers2": [],
"comments": "test extensions to css21, or initial value if no extension",
"properties": [
{
......
......@@ -6,5 +6,6 @@
"dontFetch": true,
"dontFetchReason": "specification is final",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction"
"dontExtractReason": "requires manual property extraction",
"helpers2": []
}
......@@ -3,7 +3,7 @@
"source": "http://dev.w3.org/csswg/cssom/",
"levels": [ 1 ],
"local": "cssom.html",
"helpers": [
"helpers1": [
"CSSCharsetRule",
"CSSGroupingRule",
"CSSImportRule",
......
......@@ -3,7 +3,7 @@
"source": "http://dev.w3.org/csswg/cssom-view/",
"levels": [ 1 ],
"local": "cssomview.html",
"helpers": [
"helpers1": [
"CaretPosition",
"MediaQueryList"
],
......
......@@ -6,5 +6,6 @@
"dontFetch": true,
"dontFetchReason": "specification is final",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction"
"dontExtractReason": "requires manual property extraction",
"helpers2": []
}
......@@ -5,7 +5,7 @@
"local": "csstext.html",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": [],
"helpers2": [],
"comments": "test extensions to css21, or initial value if no extension",
"properties": [
{
......
......@@ -5,7 +5,7 @@
"local": "csstransform.html",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": [],
"helpers2": [],
"properties": [
{
"name": "transform",
......
......@@ -5,7 +5,7 @@
"local": "csstransition.html",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": [],
"helpers2": [],
"properties": [
{
"name": "transition-property",
......
......@@ -5,7 +5,7 @@
"local": "cssui.html",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": [],
"helpers2": [],
"comments": "test extensions to css21, or initial value if no extension",
"properties": [
{
......
......@@ -4,5 +4,6 @@
"levels": [ 2 ],
"local": "cssvalues.html",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction"
"dontExtractReason": "requires manual property extraction",
"helpers2": []
}
......@@ -5,7 +5,7 @@
"local": "csswm.html",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction",
"helpers": [],
"helpers2": [],
"comments": "test extensions to css21, or initial value if no extension",
"properties": [
{
......
......@@ -5,6 +5,7 @@
"local": "custom.html",
"dontFetch": true,
"dontFetchReason": "requires manual respec snapshot",
"helpers1": [],
"instances": {
"Document": "document"
}
......
......@@ -5,5 +5,5 @@
"local": "rfc2397.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": []
"helpers3": []
}
......@@ -5,6 +5,7 @@
"local": "dom3events.html",
"dontFetch": true,
"dontFetchReason": "requires manual respec snapshot",
"helpers1": [],
"instances": {
"CompositionEvent": "document.createEvent('CompositionEvent')",
"CustomEvent": "document.createEvent('CustomEvent')",
......
......@@ -3,7 +3,7 @@
"source": "http://w3c.github.io/dom/",
"levels": [ 1 ],
"local": "dom4.html",
"helpers": [
"helpers1": [
"DOMException",
"DOMSettableTokenList",
"MutationRecord"
......
......@@ -5,6 +5,7 @@
"local": "domps.html",
"dontFetch": true,
"dontFetchReason": "requires manual respec snapshot",
"helpers1": [],
"instances": {
"DOMParser": "'DOMParser' in window && new DOMParser()",
"Element": "document.documentElement",
......
......@@ -7,6 +7,7 @@
"dontFetchReason": "specification is final",
"dontExtract": true,
"dontExtractReason": "definitions of IDL require manual creation",
"helpers1": [],
"instances": {
"Array": "'Array' in window && new Array()",
"Boolean": "'Boolean' in window && new Boolean(false)",
......
......@@ -3,6 +3,7 @@
"source": "http://www.w3.org/TR/2014/WD-encoding-20140603/",
"levels": [ 1 ],
"local": "spec.html",
"helpers1": [],
"instances": {
"TextDecoder": "'TextDecoder' in window && new TextDecoder()",
"TextEncoder": "'TextEncoder' in window && new TextEncoder()"
......
......@@ -3,7 +3,7 @@
"source": "http://dev.w3.org/2006/webapi/FileAPI/",
"levels": [ 1 ],
"local": "file.html",
"helpers": [
"helpers1": [
"Blob",
"File",
"FileList",
......
......@@ -3,6 +3,7 @@
"source": "http://www.w3.org/TR/2012/WD-fullscreen-20120703/",
"levels": [ 1 ],
"local": "fullscreen.html",
"helpers1": [],
"instances": {
"Element": "document.documentElement",
"Document": "document"
......
......@@ -4,7 +4,7 @@
"local": "gif.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": [
"helpers4": [
"ImageGIFFormat"
],
"tests": [
......
......@@ -4,7 +4,7 @@
"source": "http://www.w3.org/html/wg/drafts/html/CR/single-page.html",
"levels": [ 1 ],
"local": "html5.html",
"helpers": [
"helpers1": [
"AudioTrack",
"AudioTrackList",
"DataCue",
......
Sun, 19 Oct 2014 07:02:29 GMT
\ No newline at end of file
Sun, 19 Oct 2014 21:12:30 GMT
\ No newline at end of file
......@@ -5,5 +5,5 @@
"local": "rfc2616.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": []
"helpers3": []
}
......@@ -5,5 +5,5 @@
"local": "rfc5785.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": []
"helpers3": []
}
This diff is collapsed.
......@@ -4,7 +4,7 @@
"local": "jpeg.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": [
"helpers4": [
"ImageJPEGFormat"
],
"tests": [
......
......@@ -6,5 +6,6 @@
"dontFetch": true,
"dontFetchReason": "specification is final",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction"
"dontExtractReason": "requires manual property extraction",
"helpers2": []
}
......@@ -4,7 +4,7 @@
"local": "mpeg2audio.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": [
"helpers4": [
"MediaMPEG2AudioFormat"
],
"tests": [
......
......@@ -4,7 +4,7 @@
"local": "mpeg2ts.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": [
"helpers4": [
"MediaMPEG2TSFormat"
],
"tests": [
......
......@@ -4,7 +4,7 @@
"local": "mpeg2video.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": [
"helpers4": [
"MediaMPEG2VideoFormat"
],
"tests": [
......
......@@ -4,7 +4,7 @@
"local": "opentype.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": [
"helpers4": [
"FontOpenTypeFormat"
],
"tests": [
......
......@@ -5,5 +5,5 @@
"local": "rfc6454.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": []
"helpers3": []
}
......@@ -4,7 +4,7 @@
"local": "png.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": [
"helpers4": [
"ImagePNGFormat"
],
"tests": [
......
......@@ -3,6 +3,7 @@
"source": "http://www.w3.org/TR/2013/REC-selectors-api-20130221/",
"levels": [ 1 ],
"local": "selectors1.html",
"helpers1": [],
"instances": {
"Document": "document",
"DocumentFragment": "document.createDocumentFragment()",
......
......@@ -3,7 +3,7 @@
"source": "http://dev.w3.org/html5/eventsource/",
"levels": [ 1 ],
"local": "sse.html",
"helpers": [
"helpers1": [
"EventSource"
],
"instances": {
......
......@@ -7,7 +7,7 @@
"dontFetchReason": "specification is final",
"dontExtract": true,
"dontExtractReason": "definitions of IDL require manual editing, about which see comment in IDL file",
"helpers": [
"helpers1": [
"AsyncURLStatus",
"DOMException",
"Document",
......
......@@ -5,5 +5,5 @@
"local": "rfc5246.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": []
"helpers3": []
}
......@@ -5,6 +5,7 @@
"local": "touchevents.html",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers1": [],
"instances": {
"Document": "document",
"Touch": "'createTouch' in document && document.createTouch(window, window, 0, 0, 0, 0, 0)",
......
......@@ -6,6 +6,7 @@
"dontFetch": true,
"dontExtract": true,
"dontExtractReason": "definitions of IDL require manual editing, about which see comment in IDL file",
"helpers1": [],
"instances": {
"ArrayBuffer": "'ArrayBuffer' in window && new ArrayBuffer(0)",
"ArrayBufferView": "'Uint8Array' in window && new Uint8Array(0)",
......
......@@ -5,6 +5,7 @@
"local": "url.html",
"dontExtract": true,
"dontExtractReason": "definitions of IDL require manual editing, about which see comment in IDL file",
"helpers1": [],
"instances": {
"URL": "'URL' in window && new URL('http://example.org/')",
"URLSearchParams": "'URLSearchParams' in window && new URLSearchPararms()",
......
......@@ -6,7 +6,7 @@
"dontFetch": true,
"dontExtract": true,
"dontExtractReason": "definitions of IDL require manual editing, about which see comment in IDL file",
"helpers": [
"helpers1": [
"WebGLActiveInfo",
"WebGLBuffer",
"WebGLFramebuffer",
......
......@@ -3,6 +3,7 @@
"source": "http://dev.w3.org/html5/postmsg/",
"levels": [ 1 ],
"local": "webmessage.html",
"helpers1": [],
"instances": {
"MessageChannel": "'MessageChannel' in window && new MessageChannel()",
"MessageEvent": "document.createEvent('MessageEvent')",
......
......@@ -3,6 +3,7 @@
"source": "http://dev.w3.org/html5/websockets/",
"levels": [ 1 ],
"local": "websocket.html",
"helpers1": [],
"instances": {
"CloseEvent": "'CloseEvent' in window && new CloseEvent('close')",
"WebSocket": "'WebSocket' in window && new WebSocket('ws://web-platform.test:8000/echo')"
......
......@@ -3,6 +3,7 @@
"source": "http://www.w3.org/TR/2013/REC-webstorage-20130730/",
"levels": [ 1 ],
"local": "webstorage.html",
"helpers1": [],
"instances": {
"Storage": "window.localStorage",
"StorageEvent": "document.createEvent('StorageEvent')",
......
......@@ -3,7 +3,7 @@
"source": "http://dev.w3.org/html5/workers/",
"levels": [ 1 ],
"local": "webworkers.html",
"helpers": [
"helpers1": [
"WorkerGlobalScope"
],
"instances": {
......
......@@ -5,7 +5,7 @@
"local": "woff.html",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": [
"helpers4": [
"FontWOFFFormat"
],
"tests": [
......
......@@ -5,5 +5,5 @@
"local": "rfc6455.txt",
"dontFetch": true,
"dontFetchReason": "specification is final",
"helpers": []
"helpers3": []
}
......@@ -3,6 +3,7 @@
"source": "https://dvcs.w3.org/hg/xhr/raw-file/default/xhr-1/Overview.html",
"levels": [ 1 ],
"local": "spec.html",
"helpers1": [],
"instances": {
"FormData": "'FormData' in window && new FormData()",
"XMLHttpRequest": "'XMLHttpRequest' in window && new XMLHttpRequest()",
......
Sun, 19 Oct 2014 07:11:32 GMT
\ No newline at end of file
Sun, 19 Oct 2014 21:24:01 GMT
\ No newline at end of file
......@@ -6,5 +6,6 @@
"dontFetch": true,
"dontFetchReason": "specification is final",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction"
"dontExtractReason": "requires manual property extraction",
"helpers2": []
}
......@@ -6,5 +6,6 @@
"dontFetch": true,
"dontFetchReason": "specification is final",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction"
"dontExtractReason": "requires manual property extraction",
"helpers2": []
}
......@@ -6,5 +6,6 @@
"dontFetch": true,
"dontFetchReason": "specification is final",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction"
"dontExtractReason": "requires manual property extraction",
"helpers2": []
}
......@@ -6,5 +6,6 @@
"dontFetch": true,
"dontFetchReason": "specification is final",
"dontExtract": true,
"dontExtractReason": "requires manual property extraction"
"dontExtractReason": "requires manual property extraction",
"helpers2": []
}
<!-- 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 ProtocolCookies</title>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src='/tools/common/level3.js'></script>
<script src='./helpers/ProtocolCookies.js'></script>
<script type='text/plain' id='testDef'>
{"name":"ProtocolCookies","helper":"ProtocolCookies","code":"run(t)","async":true}
</script>
<h1>Test ProtocolCookies Support</h1>
<div id='log'></div>
<script>
level3Async('cookies', JSON.parse(document.getElementById('testDef').textContent), function(t){return run(t);});
</script>
"use strict";
function run(t) {
var defProperties = t.properties.def;
t.done();
}
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
//
// Copyright (C) 2014, Cable Television Laboratories, Inc. & Skynav, Inc.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this list
// of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice, this list
// of conditions and the following disclaimer in the documentation and/or other
// materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
// PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"use strict";
(function() {
var global = window;
function level3(spec, defs, tester) {
runTests(spec, defs, tester, false);
}
function level3Async(spec, defs, tester) {
runTests(spec, defs, tester, true);
}
function runTests(spec, defs, tester, async) {
var def = !!defs && !Array.isArray(defs) ? defs : ((defs.length > 0) ? defs[0] : null);
if (!!def) {
runTestDefinitions(spec, def, tester, async);
}
}
function runTestDefinitions(spec, def, tester, async) {
var defName = def.name || 'missing';
var defProperties = {
name: defName,
expandedName: makeExpandedName(spec, def)
};