Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / misc / last-modified-parsing.html
blobdb6bdc0c158b11930de90b12633943ecbfcfe574
1 <script>
2 if (window.testRunner) {
3 testRunner.dumpAsText();
4 testRunner.dumpChildFramesAsText();
7 function getExpectedLastModified(lastModified) {
8 var date = new Date(lastModified);
9 var month = ('0' + (date.getMonth() + 1)).slice(-2);
10 var day = ('0' + date.getDate()).slice(-2);
11 var hour = ('0' + date.getHours()).slice(-2);
12 var minute = ('0' + date.getMinutes()).slice(-2);
13 var second = ('0' + date.getSeconds()).slice(-2);
14 var result = month + '/' + day + '/' + date.getFullYear() + ' ' + hour + ':' + minute + ':' + second;
15 return result;
18 function test(text) {
19 var url = '../resources/last-modified.php?date=' + escape(text) + '&expected=' + escape(getExpectedLastModified(text));
20 document.write('<iframe id="test" src="' + url + '"></iframe>');
23 test('Mon, 21 Nov 2008 01:03:33 GMT');
24 test('Tuesday, 21 Nov 2008 01:03:33 GMT');
25 test('Mon, 21 Nov 97 01:03:33 GMT');
26 test('Mon, 21-Nov-2008 01:03:33 GMT');
27 test('Mon, 21-Feb-2008 01:03:33 GMT');
28 test('Mon, 03-Feb-2008 01:03:33 GMT');
29 test('Mon, 3-Mar-2008 01:03:33 GMT');
30 </script>