Added further tests for navigation

This commit is contained in:
squidfunk 2017-02-09 00:02:07 +01:00
parent 07329f4304
commit 52a3761d65
5 changed files with 12 additions and 25 deletions

View File

@ -23,6 +23,6 @@ site_name: Pneumonoultramicroscopicsilicovolcanoconiosis
pages:
- Pneumonoultramicroscopicsilicovolcanoconiosis: index.md
- Supercalifragilisticexpialidocious:
- Pseudopseudohypoparathyroidism: empty.md
- Floccinaucinihilipilification: empty.md
- Antidisestablishmentarianism: empty.md
- Pseudopseudohypoparathyroidism: default.md
- Floccinaucinihilipilification: default.md
- Antidisestablishmentarianism: default.md

View File

@ -22,10 +22,10 @@
site_name: Test/Navigation
pages:
- Lorem ipsum dolor sit amet: index.md
- Consectetur adipiscing elit: empty.md
- Etiam condimentum lacinia urna id vestibulum: empty.md
- Consectetur adipiscing elit: default.md
- Etiam condimentum lacinia urna id vestibulum: default.md
- A dapibus turpis iaculis at:
- Donec tortor sem: empty.md
- Scelerisque ut congue id: empty.md
- Pretium ac risus: empty.md
- Maecenas tincidunt nulla dui: empty.md
- Donec tortor sem: default.md
- Scelerisque ut congue id: default.md
- Pretium ac risus: default.md
- Maecenas tincidunt nulla dui: default.md

View File

@ -79,9 +79,9 @@ spec.generate(__dirname, {
"states": [
{ "name": "", "wait": 250, "exec": open }
],
"suites": {
"suite": {
/* Last list item */ // TODO: this is not captured!
/* Last list item */
":last-child": {
"capture":
".md-nav--primary > .md-nav__list >" +
@ -101,7 +101,7 @@ spec.generate(__dirname, {
"states": [
{ "name": "", "wait": 250, "exec": open }
],
"suites": {
"suite": {
/* Link inside item that contains a nested list */
"md-nav__link": {
@ -114,19 +114,6 @@ spec.generate(__dirname, {
{ "name": ":focus", "wait": 250, "exec": open },
{ "name": ":hover", "wait": 250, "exec": open }
]
},
/* Active link inside item that contains a nested list */
"md-nav__link--active": {
"capture":
".md-nav--primary .md-nav__item--nested " +
".md-nav__link--active",
"break": "+@tablet-landscape",
"states": [
{ "name": "", "wait": 250, "exec": open },
{ "name": ":focus", "wait": 250, "exec": open },
{ "name": ":hover", "wait": 250, "exec": open }
]
}
}
},