~ubuntu-branches/debian/sid/gnome-shell/sid

« back to all changes in this revision

Viewing changes to tests/interactive/css-fonts.js

  • Committer: Package Import Robot
  • Author(s): Emilio Pozuelo Monfort, Petr Salinger, Emilio Pozuelo Monfort
  • Date: 2013-10-13 17:47:35 UTC
  • mfrom: (1.2.17) (18.1.41 experimental)
  • Revision ID: package-import@ubuntu.com-20131013174735-2npsu0w5wk0e6vgb
Tags: 3.8.4-4
[ Petr Salinger ]
* Restrict dependency on gir1.2-nmgtk-1.0 to linux-any (Closes: #726099)

[ Emilio Pozuelo Monfort ]
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
const UI = imports.testcommon.ui;
7
7
 
8
 
UI.init();
9
 
let stage = Clutter.Stage.get_default();
10
 
 
11
 
let b = new St.BoxLayout({ vertical: true,
12
 
                           width: stage.width,
13
 
                           height: stage.height });
14
 
stage.add_actor(b);
15
 
 
16
 
let t;
17
 
 
18
 
t = new St.Label({ "text": "Bold", style_class: "bold" });
19
 
b.add(t);
20
 
t = new St.Label({ "text": "Monospace", style_class: "monospace" });
21
 
b.add(t);
22
 
t = new St.Label({ "text": "Italic", style_class: "italic" });
23
 
b.add(t);
24
 
t = new St.Label({ "text": "Bold Italic", style_class: "bold italic" });
25
 
b.add(t);
26
 
t = new St.Label({ "text": "Big Italic", style_class: "big italic" });
27
 
b.add(t);
28
 
t = new St.Label({ "text": "Big Bold", style_class: "big bold" });
29
 
b.add(t);
30
 
 
31
 
let b2 = new St.BoxLayout({ vertical: true, style_class: "monospace" });
32
 
b.add(b2);
33
 
t = new St.Label({ "text": "Big Monospace", style_class: "big" });
34
 
b2.add(t);
35
 
t = new St.Label({ "text": "Italic Monospace", style_class: "italic" });
36
 
b2.add(t);
37
 
 
38
 
stage.show();
39
 
Clutter.main();
 
8
function test() {
 
9
    let stage = new Clutter.Stage();
 
10
    UI.init(stage);
 
11
 
 
12
    let b = new St.BoxLayout({ vertical: true,
 
13
                               width: stage.width,
 
14
                               height: stage.height });
 
15
    stage.add_actor(b);
 
16
 
 
17
    let t;
 
18
 
 
19
    t = new St.Label({ "text": "Bold", style_class: "bold" });
 
20
    b.add(t);
 
21
    t = new St.Label({ "text": "Monospace", style_class: "monospace" });
 
22
    b.add(t);
 
23
    t = new St.Label({ "text": "Italic", style_class: "italic" });
 
24
    b.add(t);
 
25
    t = new St.Label({ "text": "Bold Italic", style_class: "bold italic" });
 
26
    b.add(t);
 
27
    t = new St.Label({ "text": "Big Italic", style_class: "big italic" });
 
28
    b.add(t);
 
29
    t = new St.Label({ "text": "Big Bold", style_class: "big bold" });
 
30
    b.add(t);
 
31
 
 
32
    let b2 = new St.BoxLayout({ vertical: true, style_class: "monospace" });
 
33
    b.add(b2);
 
34
    t = new St.Label({ "text": "Big Monospace", style_class: "big" });
 
35
    b2.add(t);
 
36
    t = new St.Label({ "text": "Italic Monospace", style_class: "italic" });
 
37
    b2.add(t);
 
38
 
 
39
    UI.main(stage);
 
40
}
 
41
test();