Opened 7 years ago

Closed 7 years ago

#16372 closed defect (invalid)

IE10 dojo/test/router failure

Reported by: Kitson Kelly Owned by: Brian Arnold
Priority: undecided Milestone: 1.8.2
Component: Core Version: 1.8.1
Keywords: dohfail Cc:
Blocked By: Blocking:

Description

I am getting a failure on util/doh/runner.html?test=dojo/tests/router on IE 10.0.9200.16384 on trunk (29997).

debug: 14 tests to run in 1 groups 
 debug: ------------------------------------------------------------ 
 debug: GROUP "tests.router" has 14 tests to run 
 debug: PASSED test: Router API 0 ms 
dojo.hash: Error adding history entry. Server unreachable. 
 debug: PASSED test: Registering a route by string 1 ms 
 debug: PASSED test: Ensuring routes don't fire before startup 30 ms 
 /foo fired! New count: 1 
 debug: PASSED test: Ensuring routes do fire after startup 3 ms 
 Setting hash 
 Checking count, current hash: /foo 
	_AssertFailure: assertTrue('false') failed with hint: 
		Count should have been 2, was 1
 
 debug: 	ERROR IN:
		 function(t){
				// Due to the nature of the hashchange event,
				// this test is going to be async - but we have to nest it,
				// sadly.

				var d = new doh.Deferred();

				// Reset the hash
				hash("");

				setTimeout(function(){
					// As soon as possible, set it back to our test...
					hash("/foo");
					console.log("Setting hash");

					// ... and then check to make sure the events fired
					setTimeout(d.getTestCallback(function(){
						console.log("Checking count, current hash:", hash());
						t.t(count === 2, "Count should have been 2, was " + count);
					}), 50);
				}, 0);

				return d;
			} 
 debug: FAILED test: Ensuring that hash changes fire routes 237 ms 
 /foo fired! New count: 2 
	_AssertFailure: assertTrue('false') failed with hint: 
		Count should have been 3, was 2
 
 debug: 	ERROR IN:
		 function(t){
				var d = new doh.Deferred();

				// Since router.go fires off routes immediately, this should
				// kick off changes!
				router.go("");
				router.go("/foo");

				t.t(count === 3, "Count should have been 3, was " + count);
			} 
 debug: FAILED test: Ensuring that router.go fires changes 60 ms 
	_AssertFailure: assertTrue('false') failed with hint: 
		Count should have been 3, was 2
 
 debug: 	ERROR IN:
		 function(t){
				handle.remove();
				router.go("");
				router.go("/foo");

				t.t(count === 3, "Count should have been 3, was " + count);
			} 
 debug: FAILED test: Ensuring route doesn't fire after removal 47 ms 
	_AssertFailure: assertTrue('false') failed with hint: 
		Count should have been 4, was 3
 
 debug: 	ERROR IN:
		 function(t){
				router.register(/^\/bar$/, function(){
					count++;
				});
				router.go("/bar");

				t.t(count === 4, "Count should have been 4, was " + count);
			} 
 debug: FAILED test: Registering a route by regexp 22 ms 
 e: [object Object] 
 debug: PASSED test: Checking event object 53 ms 
 debug: PASSED test: Registering long routes with placeholders 34 ms 
 debug: PASSED test: Using capture groups in a regex route 99 ms 
 debug: PASSED test: Testing registerBefore 26 ms 
 debug: PASSED test: Stopping propagation 23 ms 
 debug: PASSED test: Preventing default (change) 46 ms 
 debug: doh._failureCount: 4 
 debug: ------------------------------------------------------------ 
 debug: | TEST SUMMARY: 
 debug: ------------------------------------------------------------ 
 debug: 	 14 tests in 1 groups 
 debug: 	 0 errors 
 debug: 	 4 failures 

Change History (2)

comment:1 Changed 7 years ago by Kitson Kelly

Keywords: dohfail added
Milestone: tbd1.8.2
Owner: set to Brian Arnold
Status: newassigned

comment:2 Changed 7 years ago by Kitson Kelly

Resolution: invalid
Status: assignedclosed

Apologies, this was based on IE10 running in Compat Mode instead of Standards Mode. This issue does not occur in Standards Mode.

Note: See TracTickets for help on using tickets.