Skip to content

Instantly share code, notes, and snippets.

View tehandyb's full-sized avatar

Andrew Blowe tehandyb

View GitHub Profile
PhantomJS 1.9.8 (Mac OS X) ReactDropButton should close an already open drop box when the drop trigger is clicked FAILED
Expected ReactDOMComponent({ _tag: 'div', tagName: 'DIV', props: Object({ className: 'rdb-drop-box', children: [ Object({ type: Function, key: null, ref: null, _owner: null, _context: Object({ }), _store: Object({ validated: true, props: Object({ children: 'Menu content here.' }) }) }) ] }), _owner: ({ props: Object({ children: [ Object({ type: Function, key: null, ref: null, _owner: null, _context: Object({ }), _store: Object({ validated: true, props: Object({ children: 'Open menu' }) }) }), Object({ type: Function, key: null, ref: null, _owner: null, _context: Object({ }), _store: Object({ validated: true, props: Object({ children: 'Menu content here.' }) }) }) ], layoutMode: '' }), _owner: null, _lifeCycleState: 'MOUNTED', _pendingCallbacks: null, _currentElement: Object({ type: Function, key: null, ref: null, _owner: null, _context: Object({ }), _store: Object({ validated: false, p
@tehandyb
tehandyb / gist:ae36fc2683adadb4d422
Created May 14, 2015 20:50
open and close drop button
var React = require('react/addons');
var TestUtils = React.addons.TestUtils;
var ReactDropButton = require('../lib/react-drop-button.jsx');
var DropTrigger = ReactDropButton.DropTrigger;
var DropBoxContent = ReactDropButton.DropBoxContent;
describe("ReactDropButton", function() {
var component, outsideComponent;
beforeEach(function() {
@tehandyb
tehandyb / gist:8537f1fced99d73ce173
Last active August 29, 2015 14:21
drop button tests
var React = require('react/addons');
var TestUtils = React.addons.TestUtils;
var ReactDropButton = require('../lib/react-drop-button.jsx');
var DropTrigger = ReactDropButton.DropTrigger;
var DropBoxContent = ReactDropButton.DropBoxContent;
describe("ReactDropButton", function() {
var component, outsideComponent;
beforeEach(function() {
default: &default
adapter: <%= defined?(JRUBY_VERSION) ? 'jdbcmysql' : 'mysql2' %>
encoding: utf8
database: eads-fadb-query-page
pool: 5
local_infile: true
username: root
password:
socket: /tmp/mysql.sock
<!DOCTYPE html>
<html lang="en">
<head>
<title>dc.js - Arc Gauge Example</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="../css/dc.css"/>
</head>
<body>
<div id="arc" ></div>
/**
## Arc Gauge
Includes: [Base Mixin](#base-mixin)
The Arc Gauge is a way to see data displacement similar to the Bar Gauge
but in curved speedometer-like fashion.
#### dc.arcGauge(parent[, chartGroup])
Parameters:
.dc-bar-gauge
{
width: 100%;
height: 6px;
position: absolute;
top: 0;
left: 0;
float: left;