// Setup code before all tests are ran
jsperf.before(function () {
testStr = '-1/2';
});
// Teardown code after all tests are ran
jsperf.after(function () {
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
Enyo CLI fiddle |
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
/* | |
* jssha256 version 0.1 - Copyright 2006 B. Poettering | |
* | |
* This program is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU General Public License as | |
* published by the Free Software Foundation; either version 2 of the | |
* License, or (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
<snippet> | |
<content><![CDATA[ | |
this.inherited(arguments); | |
]]></content> | |
<tabTrigger>inh</tabTrigger> | |
<scope>source.js</scope> | |
<description>this.inherited(arguments);</description> | |
</snippet> |
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
enyo.kind({ | |
name: "LoaderTest", | |
kind: enyo.TestSuite, | |
testSingleLoad: function() { | |
enyo.load("tests/loader1.js", enyo.bind(this, | |
function() { | |
if (window.LOADER_TEST === "loader1") { | |
this.finish(); | |
} | |
else { |
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
enyo.kind({ | |
name:"ex.RemoteEcho", | |
kind:"cli.Command", | |
command:"recho", | |
commandHandler:function(source, command) { | |
this.doCommandResponse({response:[{content:"You said, \"" + command.argList.join(" ") + "\""}]}); | |
} | |
}); | |
enyo.kind({ |
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
.todo-list { | |
width:50%; | |
background:#fff; | |
} | |
.todo-list .task-row { | |
height:40px; | |
background:#ccf; | |
border-bottom:1px solid #eef; | |
} |
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
enyo.kind({ | |
name:"ex.App", | |
kind:"Control", | |
components:[ | |
{kind:"cubiq.iScroll", components:[ | |
{kind:"VirtualRepeater", onSetupRow:"setupRow", components:[ | |
{name:"row", onclick:"rowClicked"}, | |
{kind:"Button", onclick:"buttonClicked"}, | |
{kind:"Slider", min:0, max:20} | |
]}, |
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
var _Example = { | |
name:"com.technisode.example.App", | |
kind:"Control", | |
published:{ | |
a:1, | |
b:2, | |
c:3 | |
}, | |
components:[ | |
{kind:"IntegerPicker", name:"aPicker", label:"A"}, |
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
var _Example = { | |
name:"com.technisode.example.App", | |
kind:"Control", | |
components:[ | |
{kind:"Button", caption:"click me", onclick:"clicked"}, | |
{kind:"toaster.addtsk", name:"addtsk"} | |
], | |
clicked:function() { | |
this.$.addtsk.openAtCenter(); | |
} |