Opened 11 years ago

Closed 10 years ago

#9079 closed defect (duplicate)

Bugs in dijit 1.3 reported by automated test

Reported by: Aleksey Rechinskiy Owned by:
Priority: high Milestone: 1.4
Component: Dijit Version: 1.3.0
Keywords: Cc:
Blocked By: Blocking:

Description

Here is the results of running http://download.dojotoolkit.org/release-1.3.0/dojo-release-1.3.0/dijit/tests/runTests.html on my WinXP sp3, locale 'ru':

Firefox 3.0.8

All tests changes its color on test completion.

 GROUP "dijit._base.manager" has 17 tests to run
 TypeError: dijit.getFirstInTabbingOrder("area-map") is undefined
     ERROR IN:
  (function findTabElements(t) {t.is(null, dijit.getFirstInTabbingOrder("div-container"));t.is(null, dijit.getFirstInTabbingOrder("a-without-href-container"));t.is("a-with-href", dijit.getFirstInTabbingOrder("a-with-href-container").id);if (!dojo.isWebKit) {t.is("area", dijit.getFirstInTabbingOrder("area-map").id);}t.is("button", dijit.getFirstInTabbingOrder("button-container").id);t.is("input", dijit.getFirstInTabbingOrder("input-container").id);t.is("object", dijit.getFirstInTabbingOrder("object-container").id);t.is("select", dijit.getFirstInTabbingOrder("select-container").id);t.is("textarea", dijit.getFirstInTabbingOrder("textarea-container").id);t.is(null, dijit.getLastInTabbingOrder("div-container"));t.is(null, dijit.getLastInTabbingOrder("a-without-href-container"));t.is("a-with-href", dijit.getLastInTabbingOrder("a-with-href-container").id);if (!dojo.isWebKit) {t.is("area", dijit.getLastInTabbingOrder("area-map").id);}t.is("button", dijit.getLastInTabbingOrder("button-container").id);t.is("input", dijit.getLastInTabbingOrder("input-container").id);t.is("object", dijit.getLastInTabbingOrder("object-container").id);t.is("select", dijit.getLastInTabbingOrder("select-container").id);t.is("textarea", dijit.getLastInTabbingOrder("textarea-container").id);})
 FAILED test: ../../dijit/tests/_base/manager.html::dijit._base.manager::findTabElements 5 ms

============

------------------------------------------------------------
 | TEST SUMMARY:
 ------------------------------------------------------------
      189 tests in 18 groups
      1 errors
      0 failures

IE6.0.2900.5512.xpsp_sp3_gdr.080814-1236

IE throws some uncaught exceptions, if "disable script debugging" option is OFF. The log I provide here is obtained with script debigging disabled. The test can't run to its end at all.

During the test I got following native IE error popups:

Line 17
Symbol 39842
Error 'nodeType' is null or not an object
Code 0
URL: http://download.dojotoolkit.org/release-1.3.0/dojo-release-1.3.0/dijit/tests/Widget-placeAt.html
Line 1
Symbol 1
Error already called!
Code 0
URL: http://download.dojotoolkit.org/release-1.3.0/dojo-release-1.3.0/dijit/tests/layout/AccordionContainer.html
Line 1
Symbol 1
Error '_doh.currentTestDeferred' is null or not an object
Code 0
URL: http://download.dojotoolkit.org/release-1.3.0/dojo-release-1.3.0/dijit/tests/layout/nestedStack.html

Error log:

GROUP "dijit._base.scroll" has 34 tests to run

    _AssertFailure: [object Error]: assertEqual() failed:  expected (+1,+13) but got (+1,+11) with hint: min failed  [object Error]     ERROR IN:  function test_absContent_strict(){ var minScroll = -5; if(dojo.isIE < 7){ minScroll = "+13"; }else if(dojo.isIE == 7){ minScroll = "+16"; } generateTest('absContent_strict', "(+10,-1)", "(+1,"+minScroll+")"); }
FAILED test: ../../dijit/tests/_base/test_scroll.html::dijit._base.scroll::test_absContent_strict 47 ms 

    _AssertFailure: [object Error]: assertEqual() failed:  expected (+1,+13) but got (+1,+11) with hint: min failed  [object Error]     ERROR IN:  function test_absContent_none(){ var minScroll = -5; if(dojo.isIE < 7){ minScroll = "+13"; }else if(dojo.isIE){ minScroll = "+12"; } generateTest('absContent_none', "(+10,-1)", "(+1,"+minScroll+")"); }
FAILED test: ../../dijit/tests/_base/test_scroll.html::dijit._base.scroll::test_absContent_none 31 ms

     _AssertFailure: [object Error]: assertEqual() failed:  expected (+1,+13) but got (+1,+11) with hint: min failed  [object Error]     ERROR IN:  function test_absContent_loose_rtl(){ var minScroll = "(+1,-5)"; if(dojo.isIE < 7){ minScroll = "(+1,+13)"; }else if(dojo.isIE == 7){ minScroll = "(+33,+16)"; } var maxScroll = "+10"; if(dojo.isIE >= 7 || dojo.isFF){ maxScroll = -1; }else if(dojo.isIE == 6){ maxScroll = -8; } generateTest('absContent_loose_rtl', "("+maxScroll+",-1)", minScroll); }
FAILED test: ../../dijit/tests/_base/test_scroll.html::dijit._base.scroll::test_absContent_loose_rtl 47 ms

   _AssertFailure: [object Error]: assertEqual() failed:  expected (+1,+34) but got (+1,+32) with hint: min failed  [object Error]     ERROR IN:  function test_table_strict(){ var minScroll, maxScroll; if(dojo.isIE <= 6){ minScroll = "(+1,+34)"; maxScroll = "(+5,-47)"; }else if(dojo.isIE == 7){ minScroll = "(0,+20)"; maxScroll = "(0,-33)"; }else if(dojo.isIE >= 8){ minScroll = "(0,+19)"; maxScroll = "(0,-19)"; }else{ minScroll = "(0,+15)"; maxScroll = "(0,-15)"; } generateTest('table_strict', maxScroll, minScroll); }
FAILED test: ../../dijit/tests/_base/test_scroll.html::dijit._base.scroll::test_table_strict 63 ms

_AssertFailure: [object Error]: assertEqual() failed:  expected (-5,+34) but got (-5,+32) with hint: min failed  [object Error]     ERROR IN:  function test_table_loose_rtl(){ var minScroll, maxScroll; if(dojo.isIE <= 6){ minScroll = "(-5,+34)"; maxScroll = "(-1,-47)"; }else if(dojo.isIE == 7){ minScroll = "(0,+20)"; maxScroll = "(0,-33)"; }else if(dojo.isIE >= 8){ minScroll = "(0,+19)"; maxScroll = "(0,-19)"; }else{ minScroll = "(0,+15)"; maxScroll = "(0,-15)"; } generateTest('table_loose_rtl', maxScroll, minScroll); }
FAILED test: ../../dijit/tests/_base/test_scroll.html::dijit._base.scroll::test_table_loose_rtl 63 ms

=================

GROUP "dijit.tests._base.wai" has 23 tests to run

 [object Error]     ERROR IN:  function(){ // FIXME: implement calling into the url's groups here!! return this.d; }
FAILED test: ../../dijit/tests/_base/wai.html 0 ms

============

 GROUP "dijit.tests.Widget-placeAt" has 1 test to run [object Error]     ERROR IN:  function(){ // FIXME: implement calling into the url's groups here!! return this.d; }
FAILED test: ../../dijit/tests/Widget-placeAt.html 0 ms

============

GROUP "dijit.tests._Templated.html" has 7 tests to run [object Error]     ERROR IN:  function(){ // FIXME: implement calling into the url's groups here!! return this.d; } FAILED test: ../../dijit/tests/_Templated.html 0 ms

================
 GROUP "dijit.tests._Templated-widgetsInTemplate" has 1 test to run

 [object Error]     ERROR IN:  function(){ // FIXME: implement calling into the url's groups here!! return this.d; }
FAILED test: ../../dijit/tests/_Templated-widgetsInTemplate.html 0 ms

============

GROUP "dijit.tests.form.Form" has 1 test to run

 [object Error]     ERROR IN:  function(){ // FIXME: implement calling into the url's groups here!! return this.d; }
FAILED test: ../../dijit/tests/form/Form.html 0 ms

================

GROUP "pane2" has 15 tests to run

 [object Error]     ERROR IN:  function(){ // FIXME: implement calling into the url's groups here!! return this.d; } FAILED test: ../../dijit/tests/layout/ContentPane.html 0 ms

============

GROUP "dijit.tests.layout.StackContainer" has 1 test to run
[object Error]     ERROR IN:  function(){ // FIXME: implement calling into the url's groups here!! return this.d; }
FAILED test: ../../dijit/tests/layout/nestedStack.html 0 ms 
------------------------------------------------------------
| TEST SUMMARY: ------------------------------------------------------------      117 tests in 18 groups      7 errors      5 failures 12 tests to run in 3 groups ------------------------------------------------------------

GROUP "after load" has 5 tests to run

GROUP "resize of ContentPane contents" has 3 tests to run

  _AssertFailure: [object Error]: assertTrue('false') failed with hint:   content box has measurable width of 0  [object Error]     ERROR IN:  function(t){ doh.is(1, resizeCnt["tab2cp2"], "Tab 2 was resized once"); doh.t(deferredOne._resized, "deferredOne nested layout widget was resized"); var sizeAtResize = deferredOne._contentBox; doh.t(sizeAtResize.w > 50, "content box has measurable width of " + sizeAtResize.w); doh.t(sizeAtResize.h > 10, "content box has measurable height of " + sizeAtResize.h); } 
FAILED test: ../../dijit/tests/layout/nestedStack.html::resize of ContentPane contents::resize was called on nested layout widgets after tab was made visible 0 ms

//ARECH: it's a last line of the log

I'll attach full log file

Attachments (2)

dijit_ie6.txt (20.9 KB) - added by Aleksey Rechinskiy 11 years ago.
dijit_ff308.txt (24.6 KB) - added by Aleksey Rechinskiy 11 years ago.

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by Aleksey Rechinskiy

Attachment: dijit_ie6.txt added

Changed 11 years ago by Aleksey Rechinskiy

Attachment: dijit_ff308.txt added

comment:1 Changed 11 years ago by Aleksey Rechinskiy

I think, #9060 is included in this bugreport in IE6 section (FAILED test: ../../dijit/tests/form/Form.html 0 ms)

It is strange, that FF didn't get this error in automated test, while running http://download.dojotoolkit.org/release-1.3.0/dojo-release-1.3.0/dijit/tests/test.html manually still raises it.

comment:2 Changed 11 years ago by bill

Milestone: 1.3.11.4

comment:3 Changed 11 years ago by Aleksey Rechinskiy

BTW: this bug report is obtained under the same condiotion, as #9076. You may want to check it for some new info.

Please, note: This test was executed on Windows XP SP3 Russian version.

I've just tried to run the test on WinXP SP2 English under VirtualPC. Locale is also set to 'ru'.

Results for IE7:

Looks like the tests for

    ../../dijit/tests/form/Form.html::dijit.form.Form::setValues  
    ../../dijit/tests/form/Form.html::dijit.form.Form::nameAttributeSurvived  
    ../../dijit/tests/form/Form.html::dijit.form.Form::postSubmit  
    ../../dijit/tests/form/Form.html::dijit.form.Form::resetTest  
    ../../dijit/tests/form/Form.html::dijit.form.Form::testValidate 

weren't executed (first line is blue, others is white)

Error Log:

GROUP "dijit._base.scroll" has 34 tests to run
    _AssertFailure: [object Error]:
assertEqual() failed:  expected (+1,+16) but got (+1,+15) with hint: min failed
[object Error]     ERROR IN:  function test_absContent_strict(){ var minScroll = -5; if(dojo.isIE < 7){ minScroll = "+13"; }else if(dojo.isIE == 7){ minScroll = "+16"; } generateTest('absContent_strict', "(+10,-1)", "(+1,"+minScroll+")"); }
FAILED test: ../../dijit/tests/_base/test_scroll.html::dijit._base.scroll::test_absContent_strict 100 ms

     _AssertFailure: [object Error]: assertEqual() failed:  expected (+1,+12) but got (+1,+11) with hint: min failed
  [object Error]     ERROR IN:  function test_absContent_none(){ var minScroll = -5; if(dojo.isIE < 7){ minScroll = "+13"; }else if(dojo.isIE){ minScroll = "+12"; } generateTest('absContent_none', "(+10,-1)", "(+1,"+minScroll+")"); }
 FAILED test: ../../dijit/tests/_base/test_scroll.html::dijit._base.scroll::test_absContent_none 100 ms

     _AssertFailure: [object Error]: assertEqual() failed:  expected (+33,+16) but got (+30,+15) with hint: min failed
  [object Error]     ERROR IN:  function test_absContent_loose_rtl(){ var minScroll = "(+1,-5)"; if(dojo.isIE < 7){ minScroll = "(+1,+13)"; }else if(dojo.isIE == 7){ minScroll = "(+33,+16)"; } var maxScroll = "+10"; if(dojo.isIE >= 7 || dojo.isFF){ maxScroll = -1; }else if(dojo.isIE == 6){ maxScroll = -8; } generateTest('absContent_loose_rtl', "("+maxScroll+",-1)", minScroll); } 
FAILED test: ../../dijit/tests/_base/test_scroll.html::dijit._base.scroll::test_absContent_loose_rtl 100 ms

============================

GROUP "dijit.tests.form.Form" has 1 test to run
[object Error]     ERROR IN:
  function(){ // FIXME: implement calling into the url's groups here!! return this.d; }
 FAILED test: ../../dijit/tests/form/Form.html 0 ms

=============

 ------------------------------------------------------------
 | TEST SUMMARY:
 ------------------------------------------------------------ 
     181 tests in 18 groups 
     1 errors 
     3 failures

Please, contact me, if you need any assistance.

comment:4 Changed 11 years ago by Aleksey Rechinskiy

Opera 9.64 under the same VirtualPC WinXP sp2 English with 'ru' locale set:

GROUP "dijit._base.manager" has 17 tests to run

[Error:
 name: TypeError
message: Statement on line 81: Cannot convert undefined or null to Object
Backtrace:
  Line 81 of inline#1 script in http://download.dojotoolkit.org/release-1.3.0/dojo-release-1.3.0/dijit/tests/_base/manager.html: In function findTabElements
        						t.is("area", dijit.getFirstInTabbingOrder("area-map").id);
  Line 773 of eval script 
    			var ret = fixture.runTest(this); 
....
]
      ERROR IN:
 		 function findTabElements(t){
						t.is(null, dijit.getFirstInTabbingOrder("div-container"));

.........

						t.is("textarea", dijit.getLastInTabbingOrder("textarea-container").id);
					}
  FAILED test: ../../dijit/tests/_base/manager.html::dijit._base.manager::findTabElements 20 ms

=============

GROUP "dijit._base.scroll" has 34 tests to run

    _AssertFailure: [Object:

 name: doh._AssertFailure
]: assertNotEqual() failed: not expected |(+1,+1)| but got |(+1,+1)| with hint: 
		min failed
  [Object:

 name: doh._AssertFailure
]
      ERROR IN:
 		 function test_innerNoScrollBars_strict(){
					var scroll = '';
					if(dojo.isFF){
						scroll = '(-30,+15)';
					}else if(dojo.isIE >= 8){
						scroll = '(-30,15)';
					}else if(dojo.isIE){
						scroll = '(+20,-12)';
					}
					generateTest('innerNoScrollBars_strict', scroll, scroll);
				}
  FAILED test: ../../dijit/tests/_base/test_scroll.html::dijit._base.scroll::test_innerNoScrollBars_strict 20 ms
      _AssertFailure: [Object:

 name: doh._AssertFailure
]: assertNotEqual() failed: not expected |(+1,+1)| but got |(+1,+1)| with hint: 
		min failed
  [Object:

 name: doh._AssertFailure
]
      ERROR IN:
 		 function test_innerNoScrollBars_none(){
					var minScroll = '', maxScroll = '';
					if(dojo.isIE){
						minScroll = '(+35,-30)';
						maxScroll = '(-39,-26)';
					}else if(dojo.isFF){
						minScroll = maxScroll = '(-30,+15)';
					}
					generateTest('innerNoScrollBars_none', maxScroll, minScroll);
				}
  FAILED test: ../../dijit/tests/_base/test_scroll.html::dijit._base.scroll::test_innerNoScrollBars_none 30 ms
      _AssertFailure: [Object:

 name: doh._AssertFailure
]: assertNotEqual() failed: not expected |(+1,+1)| but got |(+1,+1)| with hint: 
		min failed
  [Object:

 name: doh._AssertFailure
]
      ERROR IN:
 		 function test_innerNoScrollBars_loose_rtl(){
					var scroll = '';
					if(dojo.isFF){
						scroll = '(+30,+15)';
					}else if(dojo.isIE >= 8){
						scroll = '(-30,15)';
					}else if(dojo.isIE){
						scroll = '(-20,-12)';
					}
					generateTest('innerNoScrollBars_loose_rtl', scroll, scroll);
				}
  FAILED test: ../../dijit/tests/_base/test_scroll.html::dijit._base.scroll::test_innerNoScrollBars_loose_rtl 30 ms
 
=============

GROUP "dijit.tests._base.wai" has 23 tests to run

  _AssertFailure: [Object:

 name: doh._AssertFailure
]: assertEqual() failed:
	expected
		contentinfo treeitem
	but got
		contentinfo

  [Object:

 name: doh._AssertFailure
]
      ERROR IN:
 		 function setWaiRoleToExistingXHTML() {
						var elem=dojo.byId("navigation-role");
						dijit.setWaiRole(elem, "treeitem");
						if(dojo.isFF < 3){/* FF2 does not support multiple roles */
							doh.assertEqual("wairole:treeitem", elem.getAttribute("role"));
						}else{
							doh.assertEqual("contentinfo treeitem", elem.getAttribute("role"));
						}
					}
  FAILED test: ../../dijit/tests/_base/wai.html::dijit.tests._base.wai::setWaiRoleToExistingXHTML 0 ms
      _AssertFailure: [Object:

 name: doh._AssertFailure
]: assertEqual() failed:
	expected
		treeitem
	but got
		menuitem

  [Object:

 name: doh._AssertFailure
]
      ERROR IN:
 		 function setWaiRoleToExistingWaiRole() {
						var div= document.createElement("div");
						dijit.setWaiRole(div, "menuitem");
						doh.assertTrue(dijit.hasWaiRole(div, "menuitem"));
						dijit.setWaiRole(div, "treeitem");
						if(dojo.isFF < 3){
							doh.assertEqual("wairole:treeitem", div.getAttribute("role"));
						}else{
							doh.assertEqual("treeitem", div.getAttribute("role"));
						}
					}
  FAILED test: ../../dijit/tests/_base/wai.html::dijit.tests._base.wai::setWaiRoleToExistingWaiRole 0 ms
      _AssertFailure: [Object:

 name: doh._AssertFailure
]: assertTrue('false') failed
  [Object:

 name: doh._AssertFailure
]
      ERROR IN:
 		 function setWaiRoleToExistingWaiAndXHTMLRole() {
						var div= dojo.byId("navigation-role");
						dijit.setWaiRole(div, "menuitem");
						doh.assertTrue(dijit.hasWaiRole(div, "menuitem"));
						dijit.setWaiRole(div, "treeitem");
						if(dojo.isFF < 3){/* FF2 does not support multiple roles */
							doh.assertEqual("wairole:treeitem", div.getAttribute("role"));
						}else{
							doh.assertEqual("contentinfo treeitem", div.getAttribute("role"));
						}
					}
  FAILED test: ../../dijit/tests/_base/wai.html::dijit.tests._base.wai::setWaiRoleToExistingWaiAndXHTMLRole 0 ms
 
   _AssertFailure: [Object:

 name: doh._AssertFailure
]: assertTrue('false') failed
  [Object:

 name: doh._AssertFailure
]
      ERROR IN:
 		 function removeSingleRoleMultiple(){
						var div= dojo.byId("navigation-role");
						dijit.setWaiRole(div, "menuitem");
						doh.assertTrue(dijit.hasWaiRole(div, "menuitem"));
						dijit.removeWaiRole(div, "menuitem");
						doh.assertFalse(dijit.hasWaiRole(div, "menuitem"));
						if(dojo.isFF < 3){/* FF2 does not support multiple roles */
							doh.assertEqual("", div.getAttribute("role"));
						}else{
							doh.assertEqual("contentinfo", div.getAttribute("role"));
						}
					}
  FAILED test: ../../dijit/tests/_base/wai.html::dijit.tests._base.wai::removeSingleRoleMultiple 0 ms
      _AssertFailure: [Object:

 name: doh._AssertFailure
]: assertEqual() failed:
	expected
		contentinfo
	but got
		menuitem

  [Object:

 name: doh._AssertFailure
]
      ERROR IN:
 		 function removeSingleReversedRoleMultiple(){
						var div= document.createElement("div");
						dijit.setWaiRole(div, "menuitem");
						var curRole = dojo.attr(div, "role");
						dojo.attr(div, "role", curRole += " contentinfo");
						dijit.removeWaiRole(div, "menuitem");
						doh.assertEqual("contentinfo", div.getAttribute("role"));
					}
  FAILED test: ../../dijit/tests/_base/wai.html::dijit.tests._base.wai::removeSingleReversedRoleMultiple 0 ms
 
=============

 GROUP "dijit.tests.form.Form" has 1 test to run
  [Error:

 name: Error
message: test timeout in ../../dijit/tests/form/Form.html
]
      ERROR IN:
 		 function(){
					// FIXME: implement calling into the url's groups here!!
					return this.d;
				}
  FAILED test: ../../dijit/tests/form/Form.html 0 ms

=============

  ------------------------------------------------------------
  | TEST SUMMARY:
  ------------------------------------------------------------
       181 tests in 18 groups
       2 errors
       8 failures

All tests gets colored, but the color progress bar at the page top didn't run to the end about 1/8 - 1/10 screen width.

comment:5 Changed 11 years ago by bill

Opera isn't supported on dijit but will look at the other failures. At the time of the 1.3 release I thought everything was working except for some intermittent failures. Maybe not. Anyway, will take a look.

comment:6 Changed 10 years ago by bill

Resolution: duplicate
Status: newclosed

I've been going through the automated tests for a while. They aren't all working yet but most of these problems are fixed, and my plan is to file individual tickets for each current failure.

Note: See TracTickets for help on using tickets.