@@ -59,7 +59,7 @@ fn run_json_tests(json_data: &str, parse: &fn (input: ~str) -> json::Json) {
59
59
60
60
#[ test]
61
61
fn component_value_list ( ) {
62
- do run_json_tests ( include_str ! ( "json -tests/component_value_list.json" ) ) |input| {
62
+ do run_json_tests ( include_str ! ( "css-parsing -tests/component_value_list.json" ) ) |input| {
63
63
let mut parser = Parser :: from_str ( input) ;
64
64
let mut results = ~[ ] ;
65
65
loop {
@@ -75,7 +75,7 @@ fn component_value_list() {
75
75
76
76
#[ test]
77
77
fn one_component_value ( ) {
78
- do run_json_tests ( include_str ! ( "json -tests/one_component_value.json" ) ) |input| {
78
+ do run_json_tests ( include_str ! ( "css-parsing -tests/one_component_value.json" ) ) |input| {
79
79
let mut iter = ComponentValueIterator :: from_str ( input) ;
80
80
match iter. next_non_whitespace ( ) {
81
81
None => json:: List ( ~[ json:: String ( ~"error") , json:: String ( ~"empty") ] ) ,
@@ -90,7 +90,7 @@ fn one_component_value() {
90
90
91
91
#[ test]
92
92
fn declaration_list ( ) {
93
- do run_json_tests ( include_str ! ( "json -tests/declaration_list.json" ) ) |input| {
93
+ do run_json_tests ( include_str ! ( "css-parsing -tests/declaration_list.json" ) ) |input| {
94
94
let mut iter = ComponentValueIterator :: from_str ( input) ;
95
95
let mut declarations = ~[ ] ;
96
96
loop {
@@ -109,7 +109,7 @@ fn declaration_list() {
109
109
110
110
#[ test]
111
111
fn one_declaration ( ) {
112
- do run_json_tests ( include_str ! ( "json -tests/one_declaration.json" ) ) |input| {
112
+ do run_json_tests ( include_str ! ( "css-parsing -tests/one_declaration.json" ) ) |input| {
113
113
match parse_one_declaration ( & mut ComponentValueIterator :: from_str ( input) ) {
114
114
Ok ( declaration) => declaration. to_json ( ) ,
115
115
Err ( reason) => reason. to_json ( ) ,
@@ -120,7 +120,7 @@ fn one_declaration() {
120
120
121
121
#[ test]
122
122
fn rule_list ( ) {
123
- do run_json_tests ( include_str ! ( "json -tests/rule_list.json" ) ) |input| {
123
+ do run_json_tests ( include_str ! ( "css-parsing -tests/rule_list.json" ) ) |input| {
124
124
let mut iter = ComponentValueIterator :: from_str ( input) ;
125
125
let mut rules = ~[ ] ;
126
126
loop {
@@ -139,7 +139,7 @@ fn rule_list() {
139
139
140
140
#[ test]
141
141
fn one_rule ( ) {
142
- do run_json_tests ( include_str ! ( "json -tests/one_rule.json" ) ) |input| {
142
+ do run_json_tests ( include_str ! ( "css-parsing -tests/one_rule.json" ) ) |input| {
143
143
match parse_one_rule ( & mut ComponentValueIterator :: from_str ( input) ) {
144
144
Ok ( rule) => rule. to_json ( ) ,
145
145
Err ( reason) => reason. to_json ( ) ,
0 commit comments