Skip to content

Commit

Permalink
Create sample html,js
Browse files Browse the repository at this point in the history
  • Loading branch information
waka committed Jun 19, 2011
1 parent 3a856f1 commit e705af5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
.DS_Store
*~
deps.js
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -25,6 +25,8 @@ RUNNING EXAMPLES

### To run with PhantomJS

# assume you have built and installed phantomjs and set $PATH
# assume you have built and installed phantomjs
# And you will type the following command to create deps.js
$ python vendor/google-closure-library/closure/bin/build/depswriter.py --output_file=deps.js --root_with_prefix="sample ../../../../sample"
$ cd ./sample
$ phantomjs run_test.js test/ui/textarea_test.html
3 changes: 3 additions & 0 deletions deps.js
@@ -0,0 +1,3 @@
// This file was autogenerated by vendor/google-closure-library/closure/bin/build/depswriter.py.
// Please do not edit.
goog.addDependency('../../../../sample/lib/ui/textarea.js', ['ui.Textarea'], ['goog.ui.Component']);
1 change: 1 addition & 0 deletions sample/lib/ui/textarea.js
Expand Up @@ -11,6 +11,7 @@ ui.Textarea = function(opt_value) {
goog.ui.Component.call(this);
this.value_ = opt_value || '';
};
goog.inherits(ui.Textarea, goog.ui.Component);

/**
* @inheritDoc
Expand Down
4 changes: 1 addition & 3 deletions sample/test/ui/textarea_test.html
Expand Up @@ -3,10 +3,8 @@
<head>
<meta charset="utf-8">
<title>Closure Unit Tests - ui.Textarea</title>
<script>
var CLOSURE_BASE_PATH = '../';
</script>
<script src="../../../vendor/google-closure-library/closure/goog/base.js"></script>
<script src="../../../deps.js"></script>
<script>
goog.require('ui.Textarea');
goog.require('goog.dom');
Expand Down

0 comments on commit e705af5

Please sign in to comment.