Skip to content

Commit

Permalink
Update scroll to text feature detectability API
Browse files Browse the repository at this point in the history
Update the feature detectability API to
window.location.fragmentDirective per
WICG/scroll-to-text-fragment#19

Also updated web platform tests and confirmed tests pass.

Bug: 1000308
Change-Id: Ib2391abe3d142d57cea61840e721ed35c81089af
  • Loading branch information
Nick Burris authored and chromium-wpt-export-bot committed Oct 9, 2019
1 parent ce015c1 commit 0373809
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scroll-to-text-fragment/scroll-to-text-fragment.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
];

test(t => {
assert_equals(typeof(window.location.selector), 'object', 'window.location.selector is defined');
}, 'Scroll to text is feature detectable via window.location.selector');
assert_equals(typeof(window.location.fragmentDirective), 'object', 'window.location.fragmentDirective is defined');
}, 'Scroll to text is feature detectable via window.location.fragmentDirective');

for (const test_case of test_cases) {
promise_test(t => new Promise(resolve => {
Expand Down

0 comments on commit 0373809

Please sign in to comment.