forked from kristianmandrup/aurelia-definitely-typed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
650dd50
commit 1e50df6
Showing
6 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
aurelia-event-aggregator/aurelia-event-aggregator-tests.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
/// <reference path="lib.d.ts" /> | ||
/// <reference path="aurelia-event-aggregator.d.ts" /> | ||
|
||
function testEventAggregator { | ||
var evag = new EventAggregator(); | ||
evag.eventLookup; | ||
evag.messageHandlers; | ||
|
||
var cb = function() {}; | ||
var ev = {}; | ||
|
||
evag.publish(ev, []); | ||
evag.subscribe(ev, cb); | ||
evag.subscribeOnce(ev, cb); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
/// <reference path="lib.d.ts" /> | ||
/// <reference path="aurelia-framework.d.ts" /> | ||
|
||
function testPlugins() { | ||
var aurelia = {}; | ||
var plg = new Plugins(aurelia) | ||
plg.aurelia; | ||
plg.info; | ||
plg.processed | ||
|
||
var moduleId = 'x'; | ||
var config = {}; | ||
var plgs: Plugins; | ||
|
||
plgs = plg.plugin(moduleId, config); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
/// <reference path="lib.d.ts" /> | ||
/// <reference path="aurelia-history-browser.d.ts" /> | ||
/// <reference path="aurelia-history.d.ts" /> | ||
|
||
function testBrowserHistory() { | ||
var bh : History; | ||
bh = new BrowserHistory(); | ||
|
||
bh.interval; | ||
bh.active; | ||
bh.previousFragment; | ||
bh.location; | ||
bh.history; | ||
bh.root; | ||
bh.options; | ||
bh.fragment; | ||
bh.iframe; | ||
bh.getHash(); | ||
bh.getFragment(); | ||
bh.activate({}); | ||
bh.deactivate(); | ||
bh.checkUrl() == true; | ||
bh.loadUrl(true); | ||
bh.navigate('x', {}); | ||
bh.navigateBack() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
/// <reference path="lib.d.ts" /> | ||
/// <reference path="aurelia-history.d.ts" /> | ||
|
||
function testHistory() { | ||
var his = new History(); | ||
his.activate(); | ||
his.deactivate(); | ||
his.navigate(); | ||
his.navigateBack(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
/// <reference path="lib.d.ts" /> | ||
/// <reference path="aurelia-http-client.d.ts" /> | ||
|
||
function testHeaders() { | ||
var hds = new Headers({x: 2}); | ||
hds.headers; | ||
hds.add('x', 2); | ||
hds.get('x'); | ||
hds.clear(); | ||
hds.configureXHR({xhr: 1}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
/// <reference path="lib.d.ts" /> | ||
/// <reference path="aurelia-loader.d.ts" /> | ||
|
||
function testTemplateDependency { | ||
var dep = new TemplateDependency('./alex', 'alex'); | ||
dep.src; | ||
dep.name; | ||
} |