Bug 1105252 - Update web-platform-tests to revision fdbdabd4c8adb385e19f541cd03f1832b1aea468, a=testonly

This commit is contained in:
James Graham 2014-11-26 13:22:45 +00:00
parent 50efeb7c58
commit f993edcf08
4 changed files with 114 additions and 24 deletions

View File

@ -1210,6 +1210,12 @@
{
"url": "/dom/nodes/ChildNode-remove.js"
},
{
"url": "/dom/nodes/Comment-Text-constructor.js"
},
{
"url": "/dom/nodes/DOMImplementation-createHTMLDocument.js"
},
{
"url": "/dom/nodes/Document-contentType/resources/blob.txt"
},
@ -1237,6 +1243,9 @@
{
"url": "/dom/nodes/Document-contentType/support/contenttype_setter.py"
},
{
"url": "/dom/nodes/Document-createComment-createTextNode.js"
},
{
"url": "/dom/nodes/Document-createElement-namespace-tests/bare_mathml.xml"
},
@ -1360,6 +1369,9 @@
{
"url": "/dom/traversal/unfinished/TODO"
},
{
"url": "/encoding/resources/single-byte-raw.py"
},
{
"url": "/eventsource/README.md"
},
@ -2851,6 +2863,12 @@
{
"url": "/resource-timing/test_resource_timing.js"
},
{
"url": "/selectors-api/tests/submissions/Opera/Element-matches.js"
},
{
"url": "/selectors-api/tests/submissions/Opera/ParentNode-find-findAll.js"
},
{
"url": "/selectors-api/tests/submissions/Opera/level2-lib.js"
},
@ -9143,6 +9161,9 @@
{
"url": "/DOMEvents/event-phases-order.html"
},
{
"url": "/DOMEvents/init-event-while-dispatching.html"
},
{
"url": "/DOMEvents/tests/approved/DOM.event.flow.html"
},
@ -9173,15 +9194,9 @@
{
"url": "/DOMEvents/tests/approved/Propagation.path.target.removed.html"
},
{
"url": "/DOMEvents/tests/approved/addEventListener.optional.useCapture.html"
},
{
"url": "/DOMEvents/tests/approved/dispatchEvent.click.checkbox.html"
},
{
"url": "/DOMEvents/tests/approved/dispatchEvent.return.value.html"
},
{
"url": "/DOMEvents/tests/approved/domnodeinserted.html"
},
@ -9224,9 +9239,6 @@
{
"url": "/DOMEvents/tests/submissions/Microsoft/converted/Propagation.path.target.removed.html"
},
{
"url": "/DOMEvents/tests/submissions/Microsoft/converted/addEventListener.optional.useCapture.html"
},
{
"url": "/DOMEvents/tests/submissions/Microsoft/converted/dispatchEvent.DISPATCH_REQUEST_ERR.html"
},
@ -9239,9 +9251,6 @@
{
"url": "/DOMEvents/tests/submissions/Microsoft/converted/dispatchEvent.click.checkbox.html"
},
{
"url": "/DOMEvents/tests/submissions/Microsoft/converted/dispatchEvent.return.value.html"
},
{
"url": "/DOMEvents/tests/submissions/Microsoft/converted/domnodeinserted.html"
},
@ -10337,9 +10346,15 @@
{
"url": "/XMLHttpRequest/send-data-blob.htm"
},
{
"url": "/XMLHttpRequest/send-data-es-object.htm"
},
{
"url": "/XMLHttpRequest/send-data-formdata.htm"
},
{
"url": "/XMLHttpRequest/send-data-unexpected-tostring.htm"
},
{
"url": "/XMLHttpRequest/send-entity-body-basic.htm"
},
@ -10844,6 +10859,9 @@
{
"url": "/dom/events/Event-defaultPrevented.html"
},
{
"url": "/dom/events/Event-dispatch-omitted-capture.html"
},
{
"url": "/dom/events/Event-initEvent.html"
},
@ -10859,6 +10877,9 @@
{
"url": "/dom/events/EventTarget-addEventListener.html"
},
{
"url": "/dom/events/EventTarget-dispatchEvent-returnvalue.html"
},
{
"url": "/dom/events/EventTarget-dispatchEvent.html"
},
@ -10991,6 +11012,9 @@
{
"url": "/dom/nodes/Document-createProcessingInstruction.xhtml"
},
{
"url": "/dom/nodes/Document-createTextNode.html"
},
{
"url": "/dom/nodes/Document-createTreeWalker.html"
},
@ -11240,6 +11264,9 @@
{
"url": "/dom/nodes/ProcessingInstruction-literal-2.xhtml"
},
{
"url": "/dom/nodes/Text-constructor.html"
},
{
"url": "/dom/nodes/attributes.html"
},
@ -11378,6 +11405,21 @@
{
"url": "/domxpath/evaluator-constructor.html"
},
{
"url": "/encoding/gb18030-encoder.html"
},
{
"url": "/encoding/gbk-encoder.html"
},
{
"url": "/encoding/iso-2022-jp-decoder.html"
},
{
"url": "/encoding/iso-2022-jp-encoder.html"
},
{
"url": "/encoding/single-byte-decoder.html"
},
{
"url": "/eventsource/dedicated-worker/eventsource-close.htm"
},
@ -15045,7 +15087,10 @@
"url": "/resource-timing/test_resource_timing.html"
},
{
"url": "/selectors-api/tests/submissions/Opera/level2-baseline.html"
"url": "/selectors-api/tests/submissions/Opera/Element-matches.html"
},
{
"url": "/selectors-api/tests/submissions/Opera/ParentNode-find-findAll.html"
},
{
"url": "/selectors/attribute-selectors/attribute-case/cssom.html"
@ -15536,6 +15581,9 @@
{
"url": "/vibration/api-is-present.html"
},
{
"url": "/vibration/idl.html"
},
{
"url": "/vibration/invalid-values.html"
},
@ -17646,6 +17694,6 @@
"deleted": [],
"items": {}
},
"rev": "9840b559b10e05f659932a835c11832db9e01c42",
"rev": "fdbdabd4c8adb385e19f541cd03f1832b1aea468",
"url_base": "/"
}

View File

@ -17,6 +17,15 @@
objStore = null,
objStore2 = null;
function is_cloneable(o) {
try {
self.postMessage(o, '*');
return true;
} catch (ex) {
return false;
}
}
function invalid_key(desc, key) {
var t = async_test(document.title + " - " + desc);
@ -27,11 +36,12 @@
objStore.add("value", key);
});
objStore2 = objStore2 || e.target.result.createObjectStore("store2", { keyPath: ["x", "keypath"] });
assert_throws('DataError', function() {
objStore2.add({ x: "value", keypath: key });
});
if (is_cloneable(key)) {
objStore2 = objStore2 || e.target.result.createObjectStore("store2", { keyPath: ["x", "keypath"] });
assert_throws('DataError', function() {
objStore2.add({ x: "value", keypath: key });
});
}
this.done();
};
}

View File

@ -115,11 +115,20 @@ function poll_for_stylesheet_load(expected_entry) {
function inner() {
for(var i=0; i<document.styleSheets.length; i++) {
var sheet = document.styleSheets[i];
if (sheet.href === expected_entry.name && sheet.cssRules.length > 0) {
setTimeout(function() {
resource_load(expected_entry);
}, 200);
return;
if (sheet.href === expected_entry.name) {
try {
// try/catch avoids throwing if sheet object exists before it is loaded,
// which is a bug, but not what we are trying to test here.
var hasRules = sheet.cssRules.length > 0;
} catch(e) {
hasRules = false;
}
if (hasRules) {
setTimeout(function() {
resource_load(expected_entry);
}, 200);
return;
}
}
}
setTimeout(inner, 100);

View File

@ -0,0 +1,23 @@
<!doctype html>
<meta charset=utf-8>
<title>IDL harness tests for Vibration API</title>
<body>
<h1>Description</h1>
<p>
This test validates the IDL defined by the Vibration API.
</p>
<p>
This test uses <a href="/resources/idlharness.js">idlharness.js</a>
</p>
<div id="log"></div>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>
<script>
var idl_array = new IdlArray();
idl_array.add_untested_idls("interface Navigator {};");
idl_array.add_idls("partial interface Navigator { boolean vibrate ((unsigned long or sequence<unsigned long>) pattern);};");
idl_array.add_objects({Navigator: ['navigator']});
idl_array.test();
</script>