4 https://bugzilla.mozilla.org/show_bug.cgi?id=551225
7 <title>Test for Bug
551225</title>
8 <script type=
"application/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <script type=
"application/javascript" src=
"/tests/SimpleTest/EventUtils.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=551225">Mozilla Bug
551225</a>
15 <script type=
"application/javascript;version=1.7">
17 /** Test for Bug
551225 **/
20 a: new Date('
1/
1/
2000'),
25 history.replaceState(obj, '', '');
26 is(history.state.a.toString(), new Date('
1/
1/
2000').toString(), 'Date object.');
27 is(history.state.b.toString(), '/^foo$/', 'Regex');
28 is(history.state.c, 'bar', 'Other state');