Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added examples from the CSS 3 specification to the integration test, …

…unsupported parts a comments for now
  • Loading branch information...
commit 85357be55a9fb7972278870df294a47c40792045 1 parent af56606
Thomas Weinert authored

Showing 1 changed file with 56 additions and 0 deletions. Show diff stats Hide diff stats

  1. +56 0 tests/PhpCss/IntegrationTest.php
56 tests/PhpCss/IntegrationTest.php
@@ -41,7 +41,63 @@ public function testReformatCss($expected, $selector) {
41 41
42 42 public static function provideReformattedCss() {
43 43 return array(
  44 + // CSS 3 specification
44 45 array('*', '*'),
  46 + array('E', 'E'),
  47 + // CSS 3 specification - Attributes
  48 + //array('E[foo]', 'E[foo]'),
  49 + //array('E[foo="bar"]', 'E[foo="bar"]'),
  50 + //array('E[foo~="bar"]', 'E[foo~="bar"]'),
  51 + //array('E[foo^="bar"]', 'E[foo^="bar"]'),
  52 + //array('E[foo$="bar"]', 'E[foo$="bar"]'),
  53 + //array('E[foo*="bar"]', 'E[foo*="bar"]'),
  54 + //array('E[foo|="bar"]', 'E[foo|="bar"]'),
  55 + // CSS 3 specification - structural pseudo classes
  56 + //array('E:root', 'E:root'),
  57 + //array('E:nth-child(42)', 'E:nth-child(42)'),
  58 + //array('E:nth-last-child(42)', 'E:nth-last-child(42)'),
  59 + //array('E:nth-of-type(42)', 'E:nth-of-type(42)'),
  60 + //array('E:nth-last-of-type(42)', 'E:nth-last-of-type(42)'),
  61 + //array('E:first-child', 'E:first-child'),
  62 + //array('E:last-child', 'E:last-child'),
  63 + //array('E:first-of-type', 'E:first-of-type'),
  64 + //array('E:last-of-type', 'E:last-of-type'),
  65 + //array('E:only-child', 'E:only-child'),
  66 + //array('E:only-of-type', 'E:only-of-type'),
  67 + //array('E:emtpy', 'E:empty'),
  68 + // CSS 3 specification - link pseudo classes
  69 + //array('E:link', 'E:link'),
  70 + //array('E:visited', 'E:visited'),
  71 + // CSS 3 specification - user action pseudo classes
  72 + //array('E:active', 'E:active'),
  73 + //array('E:hover', 'E:hover'),
  74 + //array('E:focus', 'E:focus'),
  75 + // CSS 3 specification - target pseudo class
  76 + //array('E:target'. 'E:target'),
  77 + // CSS 3 specification - language pseudo class
  78 + //array('E:lang(fr)'. 'E:lang(fr)'),
  79 + // CSS 3 specification - ui element states pseudo classes
  80 + //array('E:enabled', 'E:enabled'),
  81 + //array('E:disabled', 'E:disabled'),
  82 + //array('E:checked', 'E:checked'),
  83 + // CSS 3 specification - pseudo elements
  84 + //array('E::first-line', 'E::first-line'),
  85 + //array('E::first-letter', 'E::first-letter'),
  86 + //array('E::before', 'E::before'),
  87 + //array('E::after', 'E::after'),
  88 + // CSS 3 specification - class selector
  89 + array('E.warning', 'E.warning'),
  90 + // CSS 3 specification - id selector
  91 + array('E#myid', 'E#myid'),
  92 + // CSS 3 specification - negation pseudo class
  93 + //array('E:not(s)', 'E:not(s)'),
  94 + // CSS 3 specification - combinators
  95 + array('E F', 'E F'),
  96 + array('E > F', 'E > F'),
  97 + array('E + F', 'E + F'),
  98 + array('E ~ F', 'E ~ F'),
  99 +
  100 + // individual examples
45 101 array('element', 'element'),
46 102 array('ns|*', 'ns|*'),
47 103 array('.class', '.class'),

0 comments on commit 85357be

Please sign in to comment.
Something went wrong with that request. Please try again.