зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1540028 [wpt PR 16099] - Catch more exceptions in Document-createElement-namespace, a=testonly
Automatic update from web-platform-tests Catch more exceptions in Document-createElement-namespace (#16099) -- wpt-commits: 8f8cbc5ce2a728ad2b48f58085977b8793c95f2b wpt-pr: 16099
This commit is contained in:
Родитель
db4013cb7c
Коммит
bfd39bdf65
|
@ -102,18 +102,16 @@ var tests = [
|
|||
|
||||
tests.forEach(function(testName) {
|
||||
Object.keys(testExtensions).forEach(function(ext) {
|
||||
var iframe = document.createElement("iframe");
|
||||
iframe.src = "Document-createElement-namespace-tests/" +
|
||||
testName + "." + ext;
|
||||
var t = async_test("Created element's namespace in " + testName + "." + ext);
|
||||
iframe.onload = function() {
|
||||
t.step(function() {
|
||||
async_test(function(t) {
|
||||
var iframe = document.createElement("iframe");
|
||||
iframe.src = "Document-createElement-namespace-tests/" +
|
||||
testName + "." + ext;
|
||||
iframe.onload = t.step_func_done(function() {
|
||||
testDoc(iframe.contentDocument, testExtensions[ext]);
|
||||
document.body.removeChild(iframe);
|
||||
});
|
||||
document.body.removeChild(iframe);
|
||||
t.done();
|
||||
};
|
||||
document.body.appendChild(iframe);
|
||||
document.body.appendChild(iframe);
|
||||
}, "Created element's namespace in " + testName + "." + ext);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
Загрузка…
Ссылка в новой задаче