A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$
if your browser aliases it:
~ 108 byte version
//Wait for relevant code bits to load before starting any tests | |
define(['core.js'], function( core ) { | |
module("Core Tests"); | |
test("Test core methods", function(){ | |
expect(2); | |
equals( 1, 1, "A trivial test"); | |
ok( true, "Another trivial test"); | |
}); |
if ENV.key?('SELENIUM_REMOTE') | |
Capybara.register_driver :selenium do |app| | |
require 'selenium-webdriver' | |
profile = Selenium::WebDriver::Firefox::Profile.from_name 'default' | |
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox(:firefox_profile => profile) | |
Capybara::Selenium::Driver.new(app, { :browser => :remote, :desired_capabilities => capabilities }) | |
end | |
end |
{ | |
"devel": false, | |
"undef": true | |
} |