Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

Commit

Permalink
add tests with selectors before and after :dir
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Mar 20, 2019
1 parent e3ed26e commit ee752f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/style-transformer.html
Expand Up @@ -71,6 +71,9 @@
:dir(rtl) > .pin.expand > .slider-knob > .slider-knob-inner::after {
color: blue;
}
span:dir(rtl) > div > x-bar {
color: blue;
}
</style>
</template>

Expand Down Expand Up @@ -195,6 +198,10 @@
assert.equal(ast.rules[2].selector, '[dir="rtl"] .x-dir > .pin.expand.x-dir > .slider-knob.x-dir > .slider-knob-inner.x-dir::after, .x-dir[dir="rtl"] > .pin.expand.x-dir > .slider-knob.x-dir > .slider-knob-inner.x-dir::after');
});

test(':dir with before segment, and after segment', function() {
// span:dir(rtl) > div > x-bar
assert.equal(ast.rules[3].selector, '[dir="rtl"] span.x-dir > div.x-dir > x-bar.x-dir, span.x-dir[dir="rtl"] > div.x-dir > x-bar.x-dir');
});
});

suite('custom-style transforms', function() {
Expand Down

0 comments on commit ee752f7

Please sign in to comment.