Blame view

bower_components/prism/tests/languages/rest/table_feature.test 1.54 KB
eb240478   Luigi Serra   public room cards...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
  +-----+---------+

  | foo |   bar   |

  +=====+=========+

  | foo |   bar   |

  +-----+---------+

  

  	+---+

  	| 1 |

  	+---+

  

  === ===

   a   b

  === ===

   1   2

  === ===

  

  	==== ==== =====

  	   foo     bar

  	--------- -----

  	 ab   cd    e

  	==== ==== =====

  	  1    2    3

  	  4    5    6

  	==== ==== =====

  

  ----------------------------------------------------

  

  [

  	["table", [

  		["punctuation", "+-----+---------+"],

  		["punctuation", "|"], " foo ", ["punctuation", "|"], "   bar   ", ["punctuation", "|"],

  		["punctuation", "+=====+=========+"],

  		["punctuation", "|"], " foo ", ["punctuation", "|"], "   bar   ", ["punctuation", "|"],

  		["punctuation", "+-----+---------+"]

  	]],

  

  	["table", [

  		["punctuation", "+---+"],

  		["punctuation", "|"], " 1 ", ["punctuation", "|"],

  		["punctuation", "+---+"]

  	]],

  

  	["table", [

  		["punctuation", "==="], ["punctuation", "==="],

  		"\r\n a   b\r\n",

  		["punctuation", "==="], ["punctuation", "==="],

  		"\r\n 1   2\r\n",

  		["punctuation", "==="], ["punctuation", "==="]

  	]],

  

  	["table", [

  		["punctuation", "===="], ["punctuation", "===="], ["punctuation", "====="],

  		"\r\n\t   foo     bar\r\n\t",

  		["punctuation", "---------"], ["punctuation", "-----"],

  		"\r\n\t ab   cd    e\r\n\t",

  		["punctuation", "===="], ["punctuation", "===="], ["punctuation", "====="],

  		"\r\n\t  1    2    3\r\n\t  4    5    6\r\n\t",

  		["punctuation", "===="], ["punctuation", "===="], ["punctuation", "====="]

  	]]

  ]

  

  ----------------------------------------------------

  

  Checks for grid tables and simple tables.