
This CL moves third_party/WebKit/LayoutTests to third_party/blink/web_tests. NOTRY=true NOAUTOREVERT=true NOPRESUBMIT=true NOTREECHECKS=true TBR=robertma@chromium.org Bug: 843412 Change-Id: Ibb588b93d1579bcd1cb68df0a50efd8653f8724f Reviewed-on: https://chromium-review.googlesource.com/c/1328627 Reviewed-by: Kent Tamura <tkent@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#610740}
17 lines
544 B
HTML
17 lines
544 B
HTML
<!DOCTYPE html>
|
|
<body>
|
|
<script src="../resources/testharness.js"></script>
|
|
<script src="../resources/testharnessreport.js"></script>
|
|
<div id="log"></div>
|
|
<script>
|
|
test(function() {
|
|
var host = document.createElement('div');
|
|
var root = host.attachShadow({mode: 'open'});
|
|
root.innerHTML = '<input id="i1"><label for="i1"></label>';
|
|
assert_equals(root.firstChild.labels.length, 1);
|
|
|
|
document.body.appendChild(host);
|
|
assert_equals(root.firstChild.labels.length, 1);
|
|
}, 'LabelsNodeList should work in Shadow DOM.');
|
|
</script>
|