#1520 ospec: report duplicate test names
This commit is contained in:
parent
3bac29bf78
commit
9ad16858a5
9 changed files with 16 additions and 61 deletions
|
|
@ -1074,43 +1074,6 @@ o.spec("route", function() {
|
|||
})
|
||||
})
|
||||
|
||||
o("calling route.set invalidates pending onmatch resolution", function(done) {
|
||||
var rendered = false
|
||||
var resolved
|
||||
$window.location.href = prefix + "/a"
|
||||
route(root, "/a", {
|
||||
"/a": {
|
||||
onmatch: function() {
|
||||
return new Promise(function(resolve) {
|
||||
callAsync(function() {
|
||||
callAsync(function() {
|
||||
resolve({view: function() {}})
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
render: function(vnode) {
|
||||
rendered = true
|
||||
resolved = "a"
|
||||
}
|
||||
},
|
||||
"/b": {
|
||||
view: function() {
|
||||
resolved = "b"
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
route.set("/b")
|
||||
|
||||
callAsync(function() {
|
||||
o(rendered).equals(false)
|
||||
o(resolved).equals("b")
|
||||
|
||||
done()
|
||||
})
|
||||
})
|
||||
|
||||
o("calling route.set invalidates pending onmatch resolution", function(done) {
|
||||
var rendered = false
|
||||
var resolved
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue