diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-09-20 10:35:32 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-09-20 10:35:32 +0100 |
commit | 46945f636221ccf0751f3f0e2e78c6e6d33cab7f (patch) | |
tree | 2b91ad943b29f66a4e08822f93dddefd55641421 /test/js | |
parent | 63dba3a0618a2116ec395937b04f65740fe529f3 (diff) | |
download | netsurf-46945f636221ccf0751f3f0e2e78c6e6d33cab7f.tar.gz netsurf-46945f636221ccf0751f3f0e2e78c6e6d33cab7f.tar.bz2 |
Improve location implementation to be more complete
Diffstat (limited to 'test/js')
-rw-r--r-- | test/js/index.html | 22 | ||||
-rw-r--r-- | test/js/location-assign.html | 13 | ||||
-rw-r--r-- | test/js/location-href.html | 13 | ||||
-rw-r--r-- | test/js/location-replace.html | 13 |
4 files changed, 53 insertions, 8 deletions
diff --git a/test/js/index.html b/test/js/index.html index 06e006ac5..38a59a6be 100644 --- a/test/js/index.html +++ b/test/js/index.html @@ -12,14 +12,6 @@ <li><a href="core.infinite.html">Infinite loop</a></li> </ul> - -<h2>Window</h2> -<ul> -<li><a href="window.lately.html">location</a></li> -<li><a href="window-enumerate.html">enumerate</a></li> -</ul> - - <h2>Document write</h2> <ul> <li><a href="inline-doc-write-simple.html">Simple document write</a></li> @@ -31,6 +23,20 @@ <li><a href="inline-innerhtml.html">Inline script innerHtml test</a></li> </ul> +<h2>Window</h2> +<ul> +<li><a href="window.lately.html">lately</a></li> +<li><a href="window-enumerate.html">enumerate</a></li> +</ul> + +<h2>Location</h2> +<ul> +<li><a href="location-enumerate.html">Enumerate members</a></li> +<li><a href="location-assign.html">assign</a> should navigate to enumeration with page in history</li> +<li><a href="location-replace.html">replace</a> should navigate to enumeration without page in history.</li> +<li><a href="location-href.html">href</a> should navigate to enumeration with page in history</li> +</ul> + <h2>DOM tests</h2> diff --git a/test/js/location-assign.html b/test/js/location-assign.html new file mode 100644 index 000000000..5ed808cc5 --- /dev/null +++ b/test/js/location-assign.html @@ -0,0 +1,13 @@ +<html> +<head> +<title>location interface assign</title> +<link rel="stylesheet" type="text/css" href="tst.css"> +</head> +<body> +<h1>location interface assign</h1> + +<script> +location.assign("location-enumerate.html"); +</script> +</body> +</html> diff --git a/test/js/location-href.html b/test/js/location-href.html new file mode 100644 index 000000000..28a9e3c02 --- /dev/null +++ b/test/js/location-href.html @@ -0,0 +1,13 @@ +<html> +<head> +<title>location interface href</title> +<link rel="stylesheet" type="text/css" href="tst.css"> +</head> +<body> +<h1>location interface href</h1> + +<script> +location.href = "location-enumerate.html"; +</script> +</body> +</html> diff --git a/test/js/location-replace.html b/test/js/location-replace.html new file mode 100644 index 000000000..047cfd467 --- /dev/null +++ b/test/js/location-replace.html @@ -0,0 +1,13 @@ +<html> +<head> +<title>location interface replace</title> +<link rel="stylesheet" type="text/css" href="tst.css"> +</head> +<body> +<h1>location interface replace</h1> + +<script> +location.replace("location-enumerate.html"); +</script> +</body> +</html> |