Skip to content

Instantly share code, notes, and snippets.

View isaulv's full-sized avatar

Isaul Vargas isaulv

View GitHub Profile
@namuol
namuol / INSTALL.md
Last active December 11, 2024 12:21
rage-quit support for bash

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@RossPatterson
RossPatterson / ShouldFindOneErrorInBadScript.cs
Created May 4, 2012 18:53
Changes to add support for capturing JavaScript errors and treating them similar to alerts - the test script must retrieve them right after they occur, or an exception is thrown.
/// <summary>
/// Make sure our IsJavaScriptErrorPresent() and GetJavaScriptError() extensions can correctly intercept an error.
/// </summary>
[Test]
public void ShouldFindOneErrorInBadScript()
{
selenium.Open("http://localhost");
selenium.RunScript("window.ThereBetterNotBeAFunctionByThisName();");
// The error should be:
// window.ThereBetterNotBeAFunctionByThisName is not a function at http://localhost/ics/support/myhistory.asp line 0