-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding support for embedded functions inside the google visualization #74
base: master
Are you sure you want to change the base?
Changes from 3 commits
50f8cf5
51c2fa7
cc7734e
609a6b7
4e48588
6cc866d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,14 @@ | |
@chart.listeners.should == [{ :event => "select", :callback => "function() {test_event(chart);}" }] | ||
end | ||
end | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Trailing whitespace detected. |
||
describe '#add_function' do | ||
it 'adds to embedded functions array' do | ||
@chart.add_function("function() {alert(\"Nothing to see here\");}") | ||
@chart.functions.should == [{ :callback => "function() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the new Ruby 1.9 hash syntax. |
||
{alert(\"Nothing to see here\");}" }] | ||
end | ||
end | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
describe "#to_js" do | ||
it "generates JS" do | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the new Ruby 1.9 hash syntax.