| Index: third_party/WebKit/LayoutTests/imported/wpt/html/browsers/history/the-history-interface/008.js
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/history/the-history-interface/008.js b/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/history/the-history-interface/008.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..96a1fe5d4a6f7e6fd548abf218777dac4fc15bb7
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/history/the-history-interface/008.js
|
| @@ -0,0 +1,11 @@
|
| +var beforehref = location.href;
|
| +
|
| +test(function () {
|
| + history.pushState('','','/testing_ignore_me_404');
|
| + assert_equals(location.href,beforehref.replace(/^(\w*:\/\/[^\/]*\/)[\w\W]*$/,'$1testing_ignore_me_404'));
|
| +}, 'history.pushState URL resolving should be done relative to the document, not the script');
|
| +
|
| +test(function () {
|
| + history.replaceState('','','/testing_ignore_me_404_2');
|
| + assert_equals(location.href,beforehref.replace(/^(\w*:\/\/[^\/]*\/)[\w\W]*$/,'$1testing_ignore_me_404_2'));
|
| +}, 'history.replaceState URL resolving should be done relative to the document, not the script');
|
|
|