Skip to content

Instantly share code, notes, and snippets.

@dharmavir
dharmavir / _readme.md
Created March 7, 2019 17:44 — forked from jrfnl/_readme.md
PHPUnit xslt

###PHPUnit logfile XLST template

This fileset provides an easy way to view the PHPUnit XML (JUnit) logfiles in a human readable manner using a web browser.

Use this either in combination with the accompanying html file or add the following tag straight after the xml opening tag of the logfile: <?xml-stylesheet type="text/xsl" href="phpunit.xslt"?>

The thresholds used for the colour-coding and whether or not to show detail for successfull tests can be changed by adjusting the variables at the top of the xslt file.

package common;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.ExpectedCondition;
/**
* Implementation of ExpectedCondition that waits until a second window is opened
* Useful when you need to wait for a pop-up window
* @author cliff.darling
@dharmavir
dharmavir / README.md
Created June 14, 2016 01:51 — forked from hofmannsven/README.md
Notes on working with Laravel 5.2
@dharmavir
dharmavir / laravelcollective-example.blade.php
Last active June 11, 2016 22:10
FormServiceProvider.php
<?php
/**
* Path: app\Providers\FormServiceProvider.php
* Reference: https://laravelcollective.com/docs/5.2/html
**/
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Form;
@dharmavir
dharmavir / plain_ajax.html
Created April 22, 2011 09:18
Simple Plain AJAX Helper function - without any Javascript library
<html>
<head>
<title>Raw AJAX Example Demo</title>
</head>
<body>
Val 1:&nbsp;<input type="text" id="val1" name="val1" value="" />
&nbsp;+&nbsp;
Val 2:&nbsp;<input type="text" id="val2" name="val2" value="" />
&nbsp;
<input type="button" value="=" onclick="doSum()"/>
@dharmavir
dharmavir / jquery.expression.contains-ic.js
Created April 20, 2011 18:16
jQuery case-insensitive contains expression
$.extend($.expr[":"],
{
"contains-ci": function(elem, i, match, array)
{
return (elem.textContent || elem.innerText || $(elem).text() || "").toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
}
});