This test validates that the value of the window.performance.navigation.redirectCount attribute, as well as the window.performance.timing.redirectStart and redirectEnd attributes on a non-redirected navigation.
This test validates the values of the window.navigation.redirectCount and the
+ window.performance.timing.redirectStart/End times on a client side redirect.
This test validates that the window.performance.timing attributes change when a page is reloaded.
+
+
This page should be loaded with a green background frame below. The frame will be automatically reloaded
+ and then verified that the window.performance.timing attributes have been updated to the new reloaded navigation timings.
+
+
+
+
+
+
+
diff --git a/tct-navigationtiming-w3c-tests/navigationtiming/w3c/test_timing_server_redirect.htm b/tct-navigationtiming-w3c-tests/navigationtiming/w3c/test_timing_server_redirect.htm
new file mode 100644
index 000000000..963e785fe
--- /dev/null
+++ b/tct-navigationtiming-w3c-tests/navigationtiming/w3c/test_timing_server_redirect.htm
@@ -0,0 +1,55 @@
+
+
+
+
+ window.performance.timing.redirect attributes on a same-origin server redirected navigation
+
+
+
+
+
+
+
+
+
+
+
+
Description
+
This test validates the values of the window.performance.redirectCount and the
+ window.performance.timing.redirectStart/End times for a same-origin server side redirect navigation.
+
+
+
+
+
+
+
diff --git a/tct-navigationtiming-w3c-tests/tests.xml b/tct-navigationtiming-w3c-tests/tests.xml
index 1d6ab16eb..3676671d9 100644
--- a/tct-navigationtiming-w3c-tests/tests.xml
+++ b/tct-navigationtiming-w3c-tests/tests.xml
@@ -745,6 +745,166 @@
+
+
+
+
+
+
+ This page should be loaded with a yellow frame. It then replaces the document in that frame with a green document.
+ The test passes if all of the checks to performance.timing are correct and the frame ends with a green background.
+
+
+ /opt/tct-navigationtiming-w3c-tests/navigationtiming/w3c/test_document_open.htm
+
+
+
+
+ http://www.w3.org/TR/2012/REC-navigation-timing-20121217/
+ TBD
+
+
+
+
+
+
+
+
+
+ This page should be loaded with a yellow frame. It then redirect the document in that frame with a green document. After the page loads, the frame is navigated to a new blank page with a green background.
+ This test passes if all of the checks to the values of the window.navigation.redirectCount and the window.performance.timing.redirectStart/End times are zero.
+
+
+ /opt/tct-navigationtiming-w3c-tests/navigationtiming/w3c/test_timing_client_redirect.htm
+
+
+
+
+ http://www.w3.org/TR/2012/REC-navigation-timing-20121217/
+ TBD
+
+
+
+
+
+
+
+
+
+ This page should be redirect to a green frame by the php in same-origin server. After the page redirected, the frame is navigated to a new blank page with a green background.
+ This test passes if all of the checks to the values of the window.navigation.redirectCount and the window.performance.timing.redirectStart/End times are set correctlly.
+
+
+ http://127.0.0.1:80/opt/tct-navigationtiming-w3c-tests/navigationtiming/w3c/test_timing_server_redirect.htm
+
+
+
+
+ http://www.w3.org/TR/2012/REC-navigation-timing-20121217/
+ TBD
+
+
+
+
+
+
+
+
+
+ Navigate in document (URL fragment change)
+ The test passes if all of the checks to performance.timing remain unchanged.
+
+
+ /opt/tct-navigationtiming-w3c-tests/navigationtiming/w3c/test_navigate_within_document.htm
+
+
+
+
+ http://www.w3.org/TR/2012/REC-navigation-timing-20121217/
+ TBD
+
+
+
+
+
+
+
+
+
+ No redirected navigation is invoked.
+ This test passes if all of the checks to the values of window.performance.navigation.redirectCount attribute, window.performance.timing.redirectStart and redirectEnd are zero.
+
+
+ /opt/tct-navigationtiming-w3c-tests/navigationtiming/w3c/test_navigation_redirectCount_none.htm
+
+
+
+
+ http://www.w3.org/TR/2012/REC-navigation-timing-20121217/
+ TBD
+
+
+
+
+
+
+
+
+
+ This page be loaded with a green background frame. The frame will be automatically reloaded.
+ The window.performance.navigation.type = TYPE_RELOAD. All of the widow.performance.timing.* values after reload are > all of the window.performance.timing.* values prior to reload.
+
+
+ /opt/tct-navigationtiming-w3c-tests/navigationtiming/w3c/test_navigation_type_reload.htm
+
+
+
+
+ http://www.w3.org/TR/2012/REC-navigation-timing-20121217/
+ TBD
+
+
+
+
+
+
+
+
+
+ Navigated with no previous document.
+ The window.performance.navigation.type = TYPE_NAVIGATE. Window.performance.timing.unloadEventStart and window.performance.timing.unloadEventEnd values are 0.
+
+
+ /opt/tct-navigationtiming-w3c-tests/navigationtiming/w3c/test_no_previous_document.htm
+
+
+
+
+ http://www.w3.org/TR/2012/REC-navigation-timing-20121217/
+ TBD
+
+
+
+
+
+
+
+
+
+ This page should be loaded with a green background frame. The frame will be automatically reloaded.
+ Window.performance.timing attributes have been updated to the new reloaded navigation timings.
+
+
+ /opt/tct-navigationtiming-w3c-tests/navigationtiming/w3c/test_timing_reload.htm
+
+
+
+
+ http://www.w3.org/TR/2012/REC-navigation-timing-20121217/
+ TBD
+
+
+
--
2.34.1