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:
Domenic Denicola 2019-04-18 11:57:49 +00:00 коммит произвёл James Graham
Родитель db4013cb7c
Коммит bfd39bdf65
1 изменённых файлов: 8 добавлений и 10 удалений

Просмотреть файл

@ -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>