android_webview
apps
ash
base
build
build_overrides
buildtools
cc
chrome
chromecast
chromeos
clank
codelabs
components
content
crypto
dbus
device
docs
extensions
fuchsia_web
gin
google_apis
gpu
headless
infra
internal
ios
ios_internal
ipc
media
mojo
native_client
native_client_sdk
net
pdf
ppapi
printing
remoting
rlz
sandbox
services
signing_keys
skia
sql
storage
styleguide
testing
third_party
abseil-cpp
accessibility_test_framework
afl
alsa
android_build_tools
android_deps
android_media
android_opengl
android_platform
android_prebuilts
android_provider
android_sdk
android_swipe_refresh
android_system_sdk
android_toolchain
android_tools_internal
androidx
androidx_javascriptengine
angle
anonymous_tokens
aosp_dalvik
apache-portable-runtime
apache-win32
apple_apsl
arcore-android-sdk
arcore-android-sdk-client
ashmem
axe-core
barhopper
beto-core
bidimapper
blink
common
manual_tests
perf_tests
public
renderer
tools
web_tests
FlagExpectations
TestLists
accessibility
android
animations
app_banner
bindings
clipboard
compositing
crypto
css-parser
css1
css2.1
css3
cssom
custom-elements
custom-properties
dark-mode
dom
editing
external
fast
flag-specific
fonts
fragmentation
fullscreen
gamepad
handwriting
harness-tests
hittesting
html
html5lib
http
idle-callback
ietestcenter
images
inspector-protocol
intersection-observer
jquery
js
loader
media
media_capabilities
mhtml
navigator_language
navigator_webdriver
netinfo
overflow
paint
payments
performance_timeline
permissionclient
platform
plugins
pointer-lock
ppapi
printing
register-protocol-handler
regress
resize-observer
resources
rootscroller
screen_orientation
scrollbars
security
shadow-dom
crashes
focus-navigation
imperative-apis
reference-target
resources
ua
DIR_METADATA
active-element.html
attach-shadow-mode.html
attach-shadow-safelist.html
attach-shadow-with-parameter.html
css-cascade-inner-scope-important-expected.txt
css-cascade-inner-scope-important.html
css-cascade-outer-scope-expected.txt
css-cascade-outer-scope.html
css-cascade-outer-scope2-expected.txt
css-cascade-outer-scope2.html
css-cascade-slot-distributed-expected.txt
css-cascade-slot-distributed.html
css-style-inherit.html
current-script.html
declarative-domparser-usecounter-expected.txt
declarative-shadow-dom-errors-expected.txt
declarative-shadow-dom-errors.html
event-composed-false-path.html
event-composed-path.html
event-composed-ua.html
event-composed.html
focus-slide-on-shadow-host.html
fullscreen-element-in-shadow-complex.html
fullscreen-element-in-shadow-simple.html
gethtml-use-counter.html
host-link-style.html
host-pseudo-elements-expected.html
host-pseudo-elements.html
layout-1-expected.html
layout-1.html
layout-expected.html
layout.html
link-title.html
link.html
node-getRootNode.html
node-isConnected.html
nodetree-labels-node-list.html
nodetree-radio-node-list.html
offsetParent.html
pointer-lock-in-shadow.html
query-selector.html
range-caret-range-from-point-left-of-shadow-expected.txt
range-caret-range-from-point-left-of-shadow.html
range-surround-contents.html
slotchange.html
slots-1-expected.html
slots-1.html
slots-2-expected.html
slots-2.html
slots-dynamic-expected.html
slots-dynamic.html
slots-fallback-1-expected.html
slots-fallback-1.html
slots-fallback-2-expected.html
slots-fallback-2.html
slots-fallback-3-expected.html
slots-fallback-3.html
slots-fallback-in-document-tree-expected.html
slots-fallback-in-document-tree.html
slots-text-nodes.html
slots.html
slotted-pseudo-element-css-text.html
slotted-pseudo-element-dynamic-attribute-change-expected.html
slotted-pseudo-element-dynamic-attribute-change.html
slotted-pseudo-element-expected.html
slotted-pseudo-element-shared-style-expected.html
slotted-pseudo-element-shared-style.html
slotted-pseudo-element.html
template-shadowroot-reflection.html
window-event.html
storage
svg
synthetic_gestures
tables
test_runner
third_party
timezonechange
touchadjustment
transforms
transitions
traversal
typedcssom
vibration
view-transition
virtual
virtualkeyboard
wasm
webaudio
webexposed
webgpu
wpt_internal
xmlviewer
.clang-format
.gitattributes
.gitignore
AIExpectations
ASANExpectations
CfTTestExpecations
FlagSpecificConfig
HEADLESS_OWNERS
IOSTestExpectations
LeakExpectations
MSANExpectations
MobileTestExpectations
NeverFixTests
OWNERS
PRESUBMIT.py
PRESUBMIT_test.py
README.md
SlowTests
StaleTestExpectations
TestExpectations
VIRTUAL_OWNERS
VirtualTestSuites
W3CImportExpectations
WebGPUExpectations
whitespace.txt
.gitattributes
.style.yapf
API_OWNERS
DEPS
DIR_METADATA
LICENSE_FOR_ABOUT_CREDITS
OWNERS
PRESUBMIT.py
PRESUBMIT_test.py
PRIVACY_OWNERS
README.md
SECURITY_OWNERS
boringssl
breakpad
brotli
bspatch
byte_buddy
cardboard
cast_core
catapult
ced
checkstyle
chevron
chromevox
chromite
clang-format
cld_3
cldr
closure_compiler
cloud_authenticator
colorama
content_analysis_sdk
coremltools
cpu_features
cpuinfo
crabbyavif
crashpad
crc32c
cronet_android_mainline_clang
cros-components
cros_system_api
crossbench
d3
dav1d
dawn
dbus
decklink
depot_tools
devscripts
devtools-frontend
distributed_point_functions
dom_distiller_js
domato
dpkg-shlibdeps
eigen3
emoji-metadata
emoji-segmenter
expat
farmhash
fast_float
fdlibm
ffmpeg
fft2d
flac
flatbuffers
flex
fontconfig
fp16
freetype
freetype-testing
fuchsia-gn-sdk
fuchsia-sdk
fusejs
fuzztest
fxdiv
gemmlowp
gif_player
glfw
glib
glslang
google-closure-library
google-java-format
google-truth
google_benchmark
google_input_tools
google_toolbox_for_mac
googlefonts_testdata
googletest
gperf
grpc
gvdb
hamcrest
harfbuzz-ng
highway
hunspell
hunspell_dictionaries
hyphenation-patterns
iaccessible2
icu
icu4j
ijar
ink
ink_stroke_modeler
inspector_protocol
instrumented_libs
ipcz
isimpledom
jacoco
javalang
jdk
jdk11
jetstream
jinja2
jni_zero
js_code_coverage
jsoncpp
jszip
junit
khronos
kotlin_stdlib
kotlinc
lcov
lens_server_proto
leveldatabase
libFuzzer
libaddressinput
libaom
libbrlapi
libc++
libc++abi
libdisplay-info
libdrm
libei
libgav1
libgudev
libinput
libipp
libjingle_xmpp
libjpeg_turbo
liblouis
libphonenumber
libpng
libprotobuf-mutator
libsecret
libsrtp
libsync
libtess2
libunwind
libunwindstack
liburlpattern
libusb
libva-fake-driver
libva_protected_content
libvpx
libwebm
libwebp
libx11
libxcb-keysyms
libxml
libxslt
libyuv
libzip
lighttpd
lit
llvm-libc
logdog
logilab
lottie
lss
lzma_sdk
mako
markdown
markupsafe
material_color_utilities
material_design_icons
material_web_components
maven
mediapipe
mesa_headers
metrics_proto
microsoft_dxheaders
microsoft_webauthn
mig
minigbm
mockito
modp_b64
mutter
nasm
nearby
neon_2_sse
netty-tcnative
netty4
node
ocmock
omnibox_proto
one_euro_filter
openh264
openscreen
openxr
opus
ots
pdfium
pefile_py3
perfetto
perl
pffft
pipewire
pipewire-media-session
ply
polymer
private-join-and-compute
private_membership
protobuf
protobuf-javascript
pthreadpool
puffin
pycoverage
pyelftools
pyjson5
pylint
pywebsocket3
pyyaml
quic_trace
r8
rapidhash
re2
requests
rjsmin
rnnoise
robolectric
rust
ruy
s2cellid
screen-ai
search_engines_data
securemessage
selenium-atoms
sentencepiece
shell-encryption
simdutf
simplejson
sinonjs
siso
six
skia
smhasher
snappy
speech-dispatcher
speedometer
spirv-cross
spirv-headers
spirv-tools
sqlite
sqlite4java
subresource-filter-ruleset
swift-toolchain
swiftshader
tensorflow-text
tensorflow_models
test_fonts
text-fragments-polyfill
tflite
tflite_support
turbine
ukey2
unrar
updater
usb_ids
utf
v4l-utils
vulkan-deps
vulkan-headers
vulkan-loader
vulkan-tools
vulkan-utility-libraries
vulkan-validation-layers
vulkan_memory_allocator
wasm_tts_engine
wayland
wayland-protocols
webdriver
webgl
webgpu-cts
webpagereplay
webrtc
webrtc_overrides
webxr_test_pages
weston
widevine
win_build_output
win_virtual_display
wix
woff2
wpt_tools
wtl
wuffs
x11proto
xcbproto
xdg-utils
xnnpack
zlib
zstd
zxcvbn-cpp
.gitignore
BUILD.gn
DEPS
OWNERS
PRESUBMIT.py
README.chromium.template
README.md
libjpeg.gni
tools
ui
url
v8
webkit
.clang-format
.clang-tidy
.clangd
.git-blame-ignore-revs
.gitallowed
.gitattributes
.gitignore
.gitmodules
.gn
.mailmap
.rustfmt.toml
.vpython3
.yapfignore
ATL_OWNERS
AUTHORS
BUILD.gn
CODE_OF_CONDUCT.md
CPPLINT.cfg
CRYPTO_OWNERS
DEPS
DIR_METADATA
LICENSE
LICENSE.chromium_os
OWNERS
PRESUBMIT.py
PRESUBMIT_test.py
PRESUBMIT_test_mocks.py
README.md
WATCHLISTS
codereview.settings

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}
25 lines
850 B
HTML
25 lines
850 B
HTML
<!DOCTYPE html>
|
|
<script src="../resources/testharness.js"></script>
|
|
<script src="../resources/testharnessreport.js"></script>
|
|
<script src="resources/shadow-dom.js"></script>
|
|
<div id="x"><span></span></div>
|
|
<div id="x"><span></span></div>
|
|
<div id="host">
|
|
<template data-mode="open">
|
|
<div id="y"><span></span></div>
|
|
<div id="y"><span></span></div>
|
|
</template>
|
|
</div>
|
|
<script>
|
|
convertTemplatesToShadowRootsWithin(host);
|
|
test(() => {
|
|
assert_equals(document.querySelectorAll('#x').length, 2);
|
|
assert_equals(document.querySelectorAll('#x span').length, 2);
|
|
}, 'querySelectorAll for multiple #Ids in a document tree');
|
|
|
|
test(() => {
|
|
assert_equals(host.shadowRoot.querySelectorAll('#y').length, 2);
|
|
assert_equals(host.shadowRoot.querySelectorAll('#y span').length, 2);
|
|
}, 'querySelectorAll for multiple #Ids in a shadow tree');
|
|
</script>
|