Skip to content

Commit b395487

Browse files
committed
Rename the json-tests directory to css-parsing-tests
... same as the remote (git-subtree'd) repository.
1 parent ea9dfcb commit b395487

File tree

9 files changed

+6
-6
lines changed

9 files changed

+6
-6
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn run_json_tests(json_data: &str, parse: &fn (input: ~str) -> json::Json) {
5959

6060
#[test]
6161
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| {
6363
let mut parser = Parser::from_str(input);
6464
let mut results = ~[];
6565
loop {
@@ -75,7 +75,7 @@ fn component_value_list() {
7575

7676
#[test]
7777
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| {
7979
let mut iter = ComponentValueIterator::from_str(input);
8080
match iter.next_non_whitespace() {
8181
None => json::List(~[json::String(~"error"), json::String(~"empty")]),
@@ -90,7 +90,7 @@ fn one_component_value() {
9090

9191
#[test]
9292
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| {
9494
let mut iter = ComponentValueIterator::from_str(input);
9595
let mut declarations = ~[];
9696
loop {
@@ -109,7 +109,7 @@ fn declaration_list() {
109109

110110
#[test]
111111
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| {
113113
match parse_one_declaration(&mut ComponentValueIterator::from_str(input)) {
114114
Ok(declaration) => declaration.to_json(),
115115
Err(reason) => reason.to_json(),
@@ -120,7 +120,7 @@ fn one_declaration() {
120120

121121
#[test]
122122
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| {
124124
let mut iter = ComponentValueIterator::from_str(input);
125125
let mut rules = ~[];
126126
loop {
@@ -139,7 +139,7 @@ fn rule_list() {
139139

140140
#[test]
141141
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| {
143143
match parse_one_rule(&mut ComponentValueIterator::from_str(input)) {
144144
Ok(rule) => rule.to_json(),
145145
Err(reason) => reason.to_json(),

0 commit comments

Comments
 (0)