Opened 7 years ago

Closed 7 years ago

#15803 closed defect (wontfix)

dojo/query: xml, xml_attr test failures (opera)

Reported by: bill Owned by: Kris Zyp
Priority: undecided Milestone: tbd
Component: Query Version: 1.7.3
Keywords: dohfail Cc:
Blocked By: Blocking:

Description

     _AssertFailure: assertEqual() failed:
 	expected
		2
	but got
		4

 with hint: 
		all lower
      ERROR IN:
 		 function xml(){
							var doc = createDocument([
								"<ResultSet>",
									"<Result>One</Result>",
									"<RESULT>Two</RESULT>",
									"<result>Three</result>",
									"<result>Four</result>",
								"</ResultSet>"
							].join("")
							);
							var de = doc.documentElement;

							doh.is(2, dojo.query("result", de).length, "all lower");
							doh.is(1, dojo.query("Result", de).length, "mixed case");
							doh.is(1, dojo.query("RESULT", de).length, "all upper");
							doh.is(0, dojo.query("resulT", de).length, "no match");
							doh.is(0, dojo.query("rEsulT", de).length, "no match");
						}
  FAILED test: ../../dojo/tests/_base/query.html::t::xml 0 ms
      _AssertFailure: assertEqual() failed:
 	expected
		0
	but got
		2

 with hint: 
		result elements with attrs (wrong)
      ERROR IN:
 		 function xml_attrs(){
							var doc = createDocument([
								"<ResultSet>",
									"<RESULT thinger='blah'>ONE</RESULT>",
									"<RESULT thinger='gadzooks'><CHILD>Two</CHILD></RESULT>",
								"</ResultSet>"
							].join(""));
							var de = doc.documentElement;

							doh.is(2, dojo.query("RESULT", de).length, "result elements");
							doh.is(0, dojo.query("RESULT[THINGER]", de).length, "result elements with attrs (wrong)");
							doh.is(2, dojo.query("RESULT[thinger]", de).length, "result elements with attrs");
							doh.is(1, dojo.query("RESULT[thinger=blah]", de).length, "result elements with attr value");
							doh.is(1, dojo.query("RESULT > CHILD", de).length, "Using child operator");
						}
  FAILED test: ../../dojo/tests/_base/query.html::t::xml_attrs 1 ms

Change History (3)

comment:1 Changed 7 years ago by bill

Summary: tests/_base/query.html xml, xml_attr test failures (opera)dojo/query: xml, xml_attr test failures (opera)

Also similar failures in the dojo/query tests. Happens in 1.7 too.

comment:2 Changed 7 years ago by bill

Keywords: dohfail added

comment:3 Changed 7 years ago by bill

Resolution: wontfix
Status: newclosed

Given that Opera is being rebuilt based on WebKit?, we should probably close this as wontfix.

Note: See TracTickets for help on using tickets.