зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1505967 [wpt PR 13988] - webkitRelativePath preserves common ancestors, a=testonly
Automatic update from web-platform-testswebkitRelativePath preserves common ancestors (#13988)
Drop requirement that webkitRelativePath only provides the shortest common ancestor, which matches behavior in Edge/Safari/Firefox, and soon Chrome.
Spec change: e6b848f4dc
Tracking issue: WICG/entries-api#18
--
wpt-commits: 378b79a9cd09df75403d88828d1793bb720a9488
wpt-pr: 13988
This commit is contained in:
Родитель
567ec5668f
Коммит
0a5411e50d
|
@ -23,9 +23,10 @@ promise_test(t => filesPromise.then(files => {
|
|||
(a, b) => a.name < b.name ? -1 : b.name < a.name ? 1 : 0);
|
||||
assert_equals(files[0].name, '1.txt');
|
||||
assert_equals(files[1].name, '2.txt');
|
||||
assert_equals(files[0].webkitRelativePath, 'c/d/1.txt');
|
||||
assert_equals(files[1].webkitRelativePath, 'c/d/2.txt');
|
||||
assert_equals(files[2].webkitRelativePath, 'c/3.txt');
|
||||
assert_equals(files[2].name, '3.txt');
|
||||
assert_equals(files[0].webkitRelativePath, 'a/b/c/d/1.txt');
|
||||
assert_equals(files[1].webkitRelativePath, 'a/b/c/d/2.txt');
|
||||
assert_equals(files[2].webkitRelativePath, 'a/b/c/3.txt');
|
||||
|
||||
}), 'webkitRelativePath is shortest common ancestor');
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче