diff options
author | Tom Ritter <tom@mozilla.com> | 2018-02-20 15:36:16 -0600 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-03-14 11:32:10 +0100 |
commit | b367c382417a8769d02dfb02639b0055dc62cef3 (patch) | |
tree | 8eb2e1b9425c2e517d600d6e57324b9d112e5910 /dom/base/test/test_file_negative_date.html | |
parent | f0b727eac28244e0fa24a6107dee44e83ad0f561 (diff) | |
download | UXP-b367c382417a8769d02dfb02639b0055dc62cef3.tar UXP-b367c382417a8769d02dfb02639b0055dc62cef3.tar.gz UXP-b367c382417a8769d02dfb02639b0055dc62cef3.tar.lz UXP-b367c382417a8769d02dfb02639b0055dc62cef3.tar.xz UXP-b367c382417a8769d02dfb02639b0055dc62cef3.zip |
Bug 1430173 - Update tests for 2ms timers. r=baku, a=RyanVM
MozReview-Commit-ID: 6xhQ71a5rDU
--HG--
extra : transplant_source : %C2%D3%A7It%0Cg%92h%BB%3A%95%A2%0D.%86%B9C%9B%2B
Diffstat (limited to 'dom/base/test/test_file_negative_date.html')
-rw-r--r-- | dom/base/test/test_file_negative_date.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dom/base/test/test_file_negative_date.html b/dom/base/test/test_file_negative_date.html index ebfa9bd0d..26cf3b82e 100644 --- a/dom/base/test/test_file_negative_date.html +++ b/dom/base/test/test_file_negative_date.html @@ -22,13 +22,13 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1158437 var blob = new Blob(['hello world']); var f1 = new File([blob], 'f1.txt', { lastModified: 0 }); -var f2 = new File([blob], 'f2.txt', { lastModified: -1 }); +var f2 = new File([blob], 'f2.txt', { lastModified: -2 }); var f3 = new File([blob], 'f3.txt', { lastModified: -1000 }); is(f1.lastModified, 0, "lastModified == 0 is supported"); ok(f1.lastModifiedDate.toString(), (new Date(0)).toString(), "Correct f1.lastModifiedDate value"); -is(f2.lastModified, -1, "lastModified == -1 is supported"); -ok(f2.lastModifiedDate.toString(), (new Date(-1)).toString(), "Correct f2.lastModifiedDate value"); +is(f2.lastModified, -2, "lastModified == -2 is supported"); +ok(f2.lastModifiedDate.toString(), (new Date(-2)).toString(), "Correct f2.lastModifiedDate value"); is(f3.lastModified, -1000, "lastModified == -1000 is supported"); ok(f3.lastModifiedDate.toString(), (new Date(-1000)).toString(), "Correct f3.lastModifiedDate value"); |