mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
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:
parent
931a56205e
commit
dee537a1fa
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user