forked from jrans/TESTERWEEK2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
41 lines (28 loc) · 874 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
test("this bit should describe, to a human, what the test is for", function() {
equal( 1, 1);
});
test("check that the header exist'", function() {
var iframe = document.getElementById('if-index');
var target = iframe.contentDocument || iframe.contentWindow.document;
var initial = target.getElementById('heading');
equal(initial, 'Hello World!', 'it works');
});
SC.initialize({
client_id: 'a3f9118b2e28c73d8d2e68a609815e7d'
});
$(document).ready(function() {
SC.stream('/tracks/293', function(sound) {
$( "#start" ).click(function() {
sound.start();
}),
$( "#stop" ).click(function() {
sound.stop();
});
});
});
$(document).ready(function() {
SC.get('/tracks/42242000', function(track) {
SC.oEmbed(track.permalink_url, document.getElementById('player'));
});
}
)