This file contains hidden or 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
| POST /session HTTP/1.1 | |
| GET /session/ad69c299769a6a219f10173073210387 HTTP/1.1 | |
| POST /session/ad69c299769a6a219f10173073210387/element/:wdc:1344363770883/elements HTTP/1.1 | |
| POST /session/ad69c299769a6a219f10173073210387/elements HTTP/1.1 | |
| GET /session/ad69c299769a6a219f10173073210387/element/:wdc:1344363775379/displayed HTTP/1.1 | |
| POST /session/ad69c299769a6a219f10173073210387/elements HTTP/1.1 | |
| GET /session/ad69c299769a6a219f10173073210387/element/:wdc:1344363775380/displayed HTTP/1.1 | |
| POST /session/ad69c299769a6a219f10173073210387/element/:wdc:1344363775380/elements HTTP/1.1 | |
| GET /session/ad69c299769a6a219f10173073210387/element/:wdc:1344363775381/displayed HTTP/1.1 | |
| GET /session/ad69c299769a6a219f10173073210387/element/:wdc:1344363775381/selected HTTP/1.1 |
This file contains hidden or 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
| repositories { | |
| ivy { | |
| ivyPattern "http://repository.gemjars.org/ivys/[organisation]/ivy-[module]-[revision].xml" | |
| artifactPattern "http://repository.gemjars.org/jars/[organisation]/[module]-[revision].jar" | |
| } | |
| } | |
| configurations { | |
| rspec.extendsFrom runtime | |
| } |
This file contains hidden or 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
| class Cucumber::Ast::StepInvocation | |
| def failed(configuration, e, clear_backtrace) | |
| if Cucumber::JRUBY && e.class.name == 'NativeException' | |
| # JRuby's NativeException ignores #set_backtrace. | |
| # We're fixing it. | |
| e.instance_eval do | |
| def set_backtrace(backtrace) | |
| @backtrace = backtrace | |
| end |
This file contains hidden or 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
| require 'nokogiri' | |
| RSpec::Matchers.define :have_xpath do |*paths| | |
| match do |doc| | |
| !doc.xpath(*paths).empty? | |
| end | |
| end | |
| def within *paths, &block | |
| describe "within #{paths.inspect}" do |
This file contains hidden or 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
| exports.woot = new javax.servlet.http.HttpServlet({ | |
| doGet: function(req, res){ | |
| res.getWriter().print("woot from JS"); | |
| } | |
| }) |
This file contains hidden or 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 polyglot = require('polyglot'); | |
| polyglot.register('coffee', require('coffee-script').CoffeeScript.compile); | |
| polyglot.require('math').square(2); |
This file contains hidden or 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
| load("coffee-script.js"); | |
| var eval = (function(scope){ | |
| var __context__ = Packages.org.mozilla.javascript.Context.getCurrentContext(); | |
| function __eval(scope, source, name){ | |
| __context__.evaluateString( | |
| scope, | |
| source, | |
| name, |
This file contains hidden or 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
| import collection.mutable.MutableList | |
| import Tap._ | |
| class Tap[A](any: A) { | |
| def tap(f: (A) => Unit): A = { | |
| f(any) | |
| any | |
| } | |
| } |
This file contains hidden or 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
| @RunWith(BehaviourRunner.class) | |
| @ItBehavesLike(ListBehaviours.class) | |
| public class ArrayListTest { | |
| @Subject ArrayList<String> list(){ | |
| return new ArrayList<String>(); | |
| } | |
| } |
This file contains hidden or 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
| apply plugin: 'java' | |
| apply plugin: 'groovy' | |
| apply plugin: 'eclipse' | |
| import org.rubygems.repository.GemResolver; | |
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| } |