Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=551225 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>Test for Bug 551225</title> |
michael@0 | 8 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 9 | <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script> |
michael@0 | 10 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 11 | </head> |
michael@0 | 12 | <body> |
michael@0 | 13 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=551225">Mozilla Bug 551225</a> |
michael@0 | 14 | |
michael@0 | 15 | <script type="application/javascript;version=1.7"> |
michael@0 | 16 | |
michael@0 | 17 | /** Test for Bug 551225 **/ |
michael@0 | 18 | |
michael@0 | 19 | obj = { |
michael@0 | 20 | a: new Date('1/1/2000'), |
michael@0 | 21 | b: /^foo$/, |
michael@0 | 22 | c: 'bar' |
michael@0 | 23 | }; |
michael@0 | 24 | |
michael@0 | 25 | history.replaceState(obj, '', ''); |
michael@0 | 26 | is(history.state.a.toString(), new Date('1/1/2000').toString(), 'Date object.'); |
michael@0 | 27 | is(history.state.b.toString(), '/^foo$/', 'Regex'); |
michael@0 | 28 | is(history.state.c, 'bar', 'Other state'); |
michael@0 | 29 | |
michael@0 | 30 | </script> |
michael@0 | 31 | </body> |
michael@0 | 32 | </html> |