Last change
on this file since 263 was
256,
checked in by hendrikvanantwerpen, 13 years ago
|
Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).
|
File size:
521 bytes
|
Line | |
---|
1 | define(["../main", "doh", "../back"], function(dojo, doh){ |
---|
2 | doh.register("tests.back.hash", [ |
---|
3 | function getAndSet(t) { |
---|
4 | var cases = [ |
---|
5 | "test", |
---|
6 | "test with spaces", |
---|
7 | "test%20with%20encoded", |
---|
8 | "test+with+pluses", |
---|
9 | " leading", |
---|
10 | "trailing ", |
---|
11 | "under_score", |
---|
12 | "extra#mark", |
---|
13 | "extra?instring", |
---|
14 | "extra&instring", |
---|
15 | "#leadinghash" |
---|
16 | ]; |
---|
17 | var b = dojo.back; |
---|
18 | function verify(s){ |
---|
19 | dojo.back.setHash(s); |
---|
20 | t.is(s, dojo.back.getHash(s)); |
---|
21 | } |
---|
22 | dojo.forEach(cases, verify); |
---|
23 | } |
---|
24 | ]); |
---|
25 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.