values.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. module.exports = [
  2. {
  3. 'should': 'Should mirror property value: clear',
  4. 'expected': 'div { clear:right; }',
  5. 'input': 'div { clear:left; }',
  6. 'reversable': true
  7. },
  8. {
  9. 'should': 'Should mirror property value: direction',
  10. 'expected': 'div { direction:ltr; }',
  11. 'input': 'div { direction:rtl; }',
  12. 'reversable': true
  13. },
  14. {
  15. 'should': 'Should mirror property value: float',
  16. 'expected': 'div { float:right; }',
  17. 'input': 'div { float:left; }',
  18. 'reversable': true
  19. },
  20. {
  21. 'should': 'Should mirror property value: text-align',
  22. 'expected': 'div { text-align:right; }',
  23. 'input': 'div { text-align:left; }',
  24. 'reversable': true
  25. },
  26. {
  27. 'should': 'Should mirror property value: cursor nw',
  28. 'expected': 'div { cursor:nw-resize; }',
  29. 'input': 'div { cursor:ne-resize; }',
  30. 'reversable': true
  31. },
  32. {
  33. 'should': 'Should mirror property value: cursor sw',
  34. 'expected': 'div { cursor:sw-resize; }',
  35. 'input': 'div { cursor:se-resize; }',
  36. 'reversable': true
  37. },
  38. {
  39. 'should': 'Should mirror property value: cursor nesw',
  40. 'expected': 'div { cursor:nesw-resize; }',
  41. 'input': 'div { cursor:nwse-resize; }',
  42. 'reversable': true
  43. },
  44. {
  45. 'should': 'Should keep property value as is: cursor ew',
  46. 'expected': 'div { cursor:ew-resize; }',
  47. 'input': 'div { cursor:ew-resize; }',
  48. 'reversable': false
  49. },
  50. {
  51. 'should': 'Should process string map in url: cursor (processUrls: true)',
  52. 'expected': '.foo { cursor: url(right.cur), url(rtl.cur), se-resize, auto }',
  53. 'input': '.foo { cursor: url(left.cur), url(ltr.cur), sw-resize, auto }',
  54. 'reversable': true,
  55. 'options': { 'processUrls': true }
  56. },
  57. {
  58. 'should': 'Should mirror property value: transition',
  59. 'expected': '.foo { transition: right .3s ease .1s, left .3s ease .1s, margin-right .3s ease, margin-left .3s ease, padding-right .3s ease, padding-left .3s ease}',
  60. 'input': '.foo { transition: left .3s ease .1s, right .3s ease .1s, margin-left .3s ease, margin-right .3s ease, padding-left .3s ease, padding-right .3s ease}',
  61. 'reversable': true
  62. },
  63. {
  64. 'should': 'Should mirror property value: transition-property',
  65. 'expected': '.foo { transition-property: right; }',
  66. 'input': '.foo { transition-property: left; }',
  67. 'reversable': true
  68. }
  69. ]