Opened 9 years ago

Closed 8 years ago

#12380 closed defect (fixed)

tests.date.locale test failure

Reported by: youngho Owned by: Adam Peller
Priority: high Milestone: 1.7
Component: Date Version: 1.6.0rc1
Keywords: dohfail Cc: haysmark, Rawld Gill, Kris Zyp
Blocked By: Blocking:

Description

Hello

tests.date.locale test failure happened during my custom build.

Here is test failure report.

[INFO]

[INFO] ------------------------------------------------------------

[INFO] The Dojo Unit Test Harness, $Rev: 23869 $

[INFO] Copyright (c) 2011, The Dojo Foundation, All Rights Reserved

[INFO] ------------------------------------------------------------

[INFO]

[INFO] An exception occurred: Error: Could not load 'tests.module'; last tried 'tests/module.js'

[INFO] 471 tests to run in 35 groups

[INFO] ------------------------------------------------------------

[INFO] GROUP "tests.date.locale" has 11 tests to run

[INFO] _AssertFailure: doh._AssertFailure: assertEqual() failed:

[INFO] expected

[INFO] Thu Aug 31 2006 00:00:00 GMT+0900 (KST)

[INFO] but got

[INFO] null

[INFO]

[INFO] : assertEqual() failed:

[INFO] expected

[INFO] Thu Aug 31 2006 00:00:00 GMT+0900 (KST)

[INFO] but got

[INFO] null

[INFO]

[INFO]

[INFO] doh._AssertFailure: assertEqual() failed:

[INFO] expected

[INFO] Thu Aug 31 2006 00:00:00 GMT+0900 (KST)

[INFO] but got

[INFO] null

[INFO]

[INFO]

[INFO] ERROR IN:

[INFO] (function (t) {var aug_11_2006_12_30_am = new Date(2006, 7, 11, 0, 30);var aug_11_2006_12_30_pm = new Date(2006, 7, 11, 12, 30);t.is(aug_11_2006_12_30_pm, dojo.date.locale.parse("08/11/06 12:30 PM", {formatLength:"short", locale:"en"}));t.is(aug_11_2006_12_30_pm, dojo.date.locale.parse("08/11/06 12:30 pm", {formatLength:"short", locale:"en"}));t.f(Boolean(dojo.date.locale.parse("08/11/06 12:30 pm", {formatLength:"short", locale:"en", strict:true})));t.is(aug_11_2006_12_30_am, dojo.date.locale.parse("08/11/06 12:30 AM", {formatLength:"short", locale:"en"}));t.is(new Date(2006, 7, 11), dojo.date.locale.parse("11082006", {datePattern:"ddMMyyyy", selector:"date"}));t.is(new Date(2006, 7, 31), dojo.date.locale.parse("31Aug2006", {datePattern:"ddMMMyyyy", selector:"date"}));})

[INFO] ------------------------------------------------------------

[INFO] GROUP "dojo.tests.store.Observable" has 2 tests to run

thanks,

Youngho

Change History (8)

comment:1 Changed 9 years ago by Adam Peller

(In [24697]) Test was locale-specific. Refs #12380 \!strict

comment:2 Changed 9 years ago by Adam Peller

Milestone: tbd1.7
Priority: normalhigh

Can't run date.locale tests in DOH, can't verify fix

comment:3 Changed 9 years ago by Adam Peller

Cc: haysmark Rawld Gill Kris Zyp added

Anyone have any clues why this test group is skipped? (I thought I reported this as a separate ticket, now can't find it)

comment:4 Changed 9 years ago by bill

(In [25148]) fix path in dojo.provide(), plus async loading logic, refs #12380 !strict

comment:5 Changed 9 years ago by Rawld Gill

(In [25153]) fixes missing subtests in dojo/tests/date; refs #12380

comment:6 Changed 9 years ago by Rawld Gill

Verified all tests passing after [25153].

youngho: due to age of this ticket, it must be with old build system. Can you please retry with trunk.

comment:7 Changed 8 years ago by bill

Keywords: dohfail added; date test failure removed

comment:8 Changed 8 years ago by Adam Peller

Resolution: fixed
Status: newclosed

This appears to be fixed. youngho, please reopen if you see a problem.

Note: See TracTickets for help on using tickets.