From 2810fe764d0074c5e32a889aabdae96ffd282978 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 9 Nov 2012 18:03:02 +0000 Subject: make javascript tests acessible from index and tidy them up a little --- test/js/assorted-log-doc-write.html | 34 ++++++++++++++++++++++++++++++++++ test/js/assorted.html | 34 ---------------------------------- test/js/doc-dom1.html | 11 ++++------- test/js/dom-doc-location.html | 10 ++++++++++ test/js/dom-location.html | 13 ------------- test/js/index.html | 29 +++++++++++++++++++++-------- test/js/window.lately.html | 13 +++++++++++++ 7 files changed, 82 insertions(+), 62 deletions(-) create mode 100644 test/js/assorted-log-doc-write.html delete mode 100644 test/js/assorted.html create mode 100644 test/js/dom-doc-location.html delete mode 100644 test/js/dom-location.html create mode 100644 test/js/window.lately.html diff --git a/test/js/assorted-log-doc-write.html b/test/js/assorted-log-doc-write.html new file mode 100644 index 000000000..bb3d477bc --- /dev/null +++ b/test/js/assorted-log-doc-write.html @@ -0,0 +1,34 @@ + +moo + + +

one

+ + +

hi

+ + diff --git a/test/js/assorted.html b/test/js/assorted.html deleted file mode 100644 index bb3d477bc..000000000 --- a/test/js/assorted.html +++ /dev/null @@ -1,34 +0,0 @@ - -moo - - -

one

- - -

hi

- - diff --git a/test/js/doc-dom1.html b/test/js/doc-dom1.html index b7743f4c2..2d7762d00 100644 --- a/test/js/doc-dom1.html +++ b/test/js/doc-dom1.html @@ -1,14 +1,11 @@ -Direct DOM element reference +DOM firstElementChild reference -

Direct DOM element reference

-

head

- -

body

- -

after

+

DOM firstElementChild reference

+

head.firstElementChild:

+

body.firstElementChild:

diff --git a/test/js/dom-doc-location.html b/test/js/dom-doc-location.html new file mode 100644 index 000000000..a41c53c31 --- /dev/null +++ b/test/js/dom-doc-location.html @@ -0,0 +1,10 @@ + + +Document Location + + + +

Document Location

+

document.location.href:

+ + diff --git a/test/js/dom-location.html b/test/js/dom-location.html deleted file mode 100644 index bbd78d80b..000000000 --- a/test/js/dom-location.html +++ /dev/null @@ -1,13 +0,0 @@ - - -Assign window.lately - - - -

Assign window.lately

-

location: -

location.protocol: -

equivalence -

assignement - - diff --git a/test/js/index.html b/test/js/index.html index 9df56d0c8..e94e8e8bb 100644 --- a/test/js/index.html +++ b/test/js/index.html @@ -1,14 +1,16 @@ -Script Tests +JavaScript Tests -

Script Tests

+

JavaScript Tests

+

Window

-

Document write tests

+ +

Document write

-

Document write tests

+ +

DOM tests

+

Reference method tests

-

Assorted +

Document element specific

+

Assorted

+ diff --git a/test/js/window.lately.html b/test/js/window.lately.html new file mode 100644 index 000000000..ba312dfe0 --- /dev/null +++ b/test/js/window.lately.html @@ -0,0 +1,13 @@ + + +Assign window.lately + + + +

Assign window.lately

+

location: +

location.protocol: +

equivalence +

assignement + + -- cgit v1.2.3