Skip to content

Instantly share code, notes, and snippets.

View foolip's full-sized avatar

Philip Jägenstedt foolip

View GitHub Profile

Using these runs:

  • chrome 69.0.3497.100 @434ca47448: 30124 tests
  • edge 17 @434ca47448: 29994 tests
  • firefox 64.0a1 @434ca47448: 30124 tests
  • safari 11.1 @434ca47448: 29994 tests

firefox-only failures:

const octokit = require('@octokit/rest')()
const repoOptions = { owner: 'web-platform-tests', repo: 'wpt' };
// merge_pr_* tags should exist since July 2017.
const SINCE = Date.parse('2017-07-01T00:00Z');
// gets all PRs with pagination
async function* getAllPullRequests(prOptions) {
let page = 1;
@foolip
foolip / specs.py
Created July 17, 2018 11:28
Adding spec to web-platform-tests META.yml
#!/usr/bin/env python3
import json
import os.path
import yaml
# https://stackoverflow.com/a/39681672
class MyDumper(yaml.Dumper):
def increase_indent(self, flow=False, indentless=False):
'use strict'
const fs = require('fs')
// Create a simplified view of the results: a map of test names (~=filename) to
// an array of maps from subtest name to status.
function readResultsAsMap(filename) {
const results = JSON.parse(fs.readFileSync(filename)).results;
const testMap = new Map;
for (const result of results) {
This file has been truncated, but you can view the full file.
http://www.ketemulagi.com/ http://www.ketemulagi.com/ html body div div div
http://www.directtoolsoutlet.com/ http://www.directtoolsoutlet.com/ html body div
http://www.economyworld.ir/ http://www.economyworld.ir/ html body div div div div div
http://www.rankia.com/ https://www.rankia.com/assets/application-c18dfafe7226be9a8130215898cd55b4b16eb89e87110a18a35831332cc21202.js html body this.lengthU0003BnU0002BU0002BU00029e.callU00028tU0002CthisU0005BnU0005DU0002CnU0002CthisU00029U0007DU00029U0002CfunctionU00028eU00029U0007Bfunction rU0003BnU0002BU0002BU00029mU00028eU0005BnU0005DU0002CtU00029U0007Dfunction ce.callU00028iU0002CeU00029U00026U00026oU0005BfU0005D.applyU00028thisU0002CargumentsU00029U0007DU0007DU00029U0002CoU0005BnU0005DU00026U00026deU00028aU0002CuU0002CU0007BvalueU0003AoU0005BnU0005DU0007DU00029U0002CoU0005BqU0005DU00026U00026deU00028aU0002CgU0002CU0007BvalueU0003AoU0005BqU0005DU0007DU00029U0002CrU00026U00026U00028cU0005BqU0005DU0003DrU00029U0002CeU0003De.touppercaseU00028U00029U0002CleU0005BeU0005D
This file has been truncated, but you can view the full file.
gcs/main.00.0001.html html body div div div
gcs/main.00.0002.html html body div
gcs/main.00.0003.html html body div div div div div
gcs/main.00.0004.html
gcs/main.00.0005.html html body div
gcs/main.00.0006.html html body div div
gcs/main.00.0007.html html body div div
gcs/main.00.0008.html html body
gcs/main.00.0009.html html body
gcs/main.00.0010.html ERROR
#!/usr/bin/env python3
#
# Unpacks a JSON file exported from BigQuery httparchive table, with one body
# per line, parses the body as HTML and prints some stuff about <main>.
import html5lib
import json
import os
import sys