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
#! /usr/bin/env node | |
// Based on https://github.com/davidtaylorhq/qunit-puppeteer package by David Taylor | |
// But compatible with NodeJS 6.x | |
// Usage: | |
// node puppeteer_qunit_runner.js [url-of-your-qunit-testsuite] [timeout-in-seconds] | |
// | |
const puppeteer = require('puppeteer'); |
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
maxkir_screen = function() { | |
var x,y; | |
if (self.innerHeight) {// all except Explorer | |
x = self.innerWidth; | |
y = self.innerHeight; | |
} | |
else if (document.documentElement && document.documentElement.clientHeight) { | |
// Explorer 6 Strict Mode | |
x = document.documentElement.clientWidth; | |
y = document.documentElement.clientHeight; |
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
(function(QUnit) { | |
var tcEscape = function(str) { | |
str = str ? str.toString() : ""; | |
str = str.replace(/\n/g, "|n"); | |
str = str.replace(/\r/g, "|r"); | |
str = str.replace(/(['\[\]])/g, "|$1"); | |
return str; | |
}; |
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
module AssertNoDatabase | |
def assert_no_database | |
@query_count = 0 | |
@query_sql = [] | |
_subscribe_to_sql | |
yield | |
assert_equal 0, @query_count, "Unexpected SQL queries:\n " << @query_sql.join("\n ") | |
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
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text"/> <!-- We're generating text, not xml --> | |
<xsl:strip-space elements="*"/> <!-- Remove all spaces not inserted specifically by us --> | |
<!-- Separator for CSV file: if you use tags AND set this to ',' the tags will end up in separate columns --> | |
<xsl:variable name="separator" select="';'"/> | |
<xsl:template match="head"/> |