Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

more test updates

  • Loading branch information...
commit dc035094653c06e345d2c75f9c86045f788914f1 1 parent ca4b212
@kriszyp authored
Showing with 16 additions and 19 deletions.
  1. +3 −6 test/gh-ui.css
  2. +10 −9 test/testCore.html
  3. +3 −4 test/try-it.html
View
9 test/gh-ui.css
@@ -1,12 +1,9 @@
@import './css/font-awesome.css';
-@import '../x.css';
-x-property {
- save-parser: require(xstyle/test/converter);
-}
-converter = require('xstyle/test/converter');
+
+converter = module('xstyle/test/converter');
data = converter/parsed;
body {
- save-parser: true;
+ converter: true;
}
h1, h2 {
font-weight: 100;
View
19 test/testCore.html
@@ -4,33 +4,34 @@
<meta charset="UTF-8">
<title>Test Core Functionality</title>
<style>
-test-variable = var: 163px;
-test-expression = var: test;
+test-variable=var: 163px;
+test-expression=var: test;
test-component {
display: block;
}
test-component {
=>
h1 (label) { color: red},
- p (content) {
+ p (content) {
color: green;
width: var(test-variable);
},
div (test-expression);
- label = var: Label;
- content = var: cont asdfkadskf anskldf naskldfn adsklnf dsklanfl kadsnent;
- main-color = var: #f00;
+ label=var: Label;
+ content=var: cont asdfkadskf anskldf naskldfn adsklnf dsklanfl kadsnent;
+ main-color=var: #00f;
background-color: #ddd;
display: block;
width: 200px;
height: 200px;
color: var(main-color);
- border: 1px solid var(main-color);
+ border: 4px solid var(main-color);
}
with-content = test-component{
- background-color: #bbb;
- main-color: #333;
+ background-color: green;
+ main-color: #aaa;
+ label: new title;
}
/* a mixin can extend another element, using it's tag and properties when being created */
mixin = div {
View
7 test/try-it.html
@@ -6,9 +6,7 @@
<style>
@import '../x.css';
/* Using XStyle to create a page to try out XStyle. */
- x-property {
- save-parser: require(xstyle/test/converter);
- }
+ save-parser = require('xstyle/test/converter');
converter = require('xstyle/test/converter');
data = converter/parsed;
@@ -38,6 +36,7 @@
}
h1, h2 {
+ opacity: 0.1;
font-weight: 100;
font-family: "Segoe UI Light", "Helvetica Neue", RobotoLight, "Segoe UI", "Segoe WP", sans-serif;
color: #08E;
@@ -60,7 +59,7 @@
<script src="../../dojo/dojo.js" data-dojo-config="async:true"></script>
<script>
- require(['xstyle/xstyle'], function(layout){
+ require(['xstyle'], function(layout){
});
</script>
Please sign in to comment.
Something went wrong with that request. Please try again.