Commit c00eba84 authored by Yoichi Osato's avatar Yoichi Osato Committed by Commit Bot

HTMLImport: Add test case for workaround import

This patch adds a layout test that confirm no warning if
imported document adds style to the main document by appendChild.

Bug: 523952
Change-Id: Idd5a603d3e585378fc57958969b491d866abf997
Reviewed-on: https://chromium-review.googlesource.com/970046Reviewed-by: default avatarTakayoshi Kochi <kochi@chromium.org>
Commit-Queue: Yoichi Osato <yoichio@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547647}
parent fd236997
This test checks that style is applied w/o deprecation warning.
<!DOCTYPE html>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
window.addEventListener("load", function () {
requestAnimationFrame(testRunner.notifyDone.bind(testRunner));
});
}
</script>
<link rel="import" href="resources/style-append-to-main.html">
This test checks that style is applied w/o deprecation warning.
<style>
.target {
color: blue;
}
</style>
<script>
var importDoc = document.currentScript.ownerDocument;
var style = importDoc.querySelector('style');
document.head.appendChild(style);
</script>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment