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
<?php | |
/** | |
* Class which compiles web resources composed of multiple files into larger files for quicker | |
* page loading. | |
* | |
* The compilation happens based on a conventional package structure which is defined by the file system | |
* containing the source. The root of the file system containing the packages only contains directories. | |
* Each directory in the root is itself the root of a set of hierarchical packages. | |
* | |
* Packages are referred use a dot (.) notation similar to Java. Compilation will produce one file per |
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
/** | |
* Create a mock iterator over the given array. | |
* | |
* @param array $a | |
* @param string $class The class to use for the mock, should be/implement/extend Iterator | |
* @param boolean $complete Whether or not to build a complete iteration. This is | |
* used when an exception/break is expected in the middle of the iteration. | |
* @param integer $numElms The number of elements that should be iterated in the case of an | |
* incomplete iteration. | |
*/ |
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
test( "test interface", function () { | |
var eventRegistry = window.eventRegistry(); | |
ok(eventRegistry.hasOwnProperty('on'), "No `on` method found"); | |
ok(eventRegistry.hasOwnProperty('trigger'), "No `trigger` method found"); | |
}); | |
test( "test binding", function () { | |
var eventRegistry = window.eventRegistry(); |
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 MyComponent = require("MyComponent"); | |
var React = require("react"); | |
describe("views/MyComponent", function () { | |
it("renders", function () { | |
var el = React.createElement(MyComponent, { | |
style: { color: "#000" } | |
}); |