Skip to content

Instantly share code, notes, and snippets.

| Module | RequestedModules | | A | B | | B | A, C | | C | none |

After A.Evaluate():

| Module | Status | AsyncParentModules | | A | evaluating-async | none | | B | evaluating-async | A |

@Ms2ger
Ms2ger / update-from-bot.py
Created February 1, 2018 15:25
update-from-bot.py
import re
import subprocess
import sys
# https://build.webkit.org/results/WPE%20Linux%2064-bit%20Release%20(Tests)/r227958%20(5851)/imported/w3c/web-platform-tests/2dcontext/imagebitmap/createImageBitmap-drawImage-actual.txt
url = sys.argv[1]
print("Loading from %s" % url)
if len(sys.argv) > 2:
<!DOCTYPE html>
<meta charset=utf-8>
<title>createImageBitmap</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/media.js"></script>
<div id=log></div>
<script>
function makeVideo() {
return new Promise(function(resolve, reject) {
@Ms2ger
Ms2ger / gardening-calendar.py
Last active January 10, 2018 08:20
Gardening calendar
import datetime
DAY = datetime.timedelta(days=1)
GARDENERS = [
[
"cgarcia",
"cturner",
"ms2ger",
"magomez",
"zdobersek",
@Ms2ger
Ms2ger / event.md
Last active February 27, 2017 13:13

The ended event is fired when playback or streaming has stopped because the end of the media was reached or because no further data is available.

This event occurs in three related but unique contexts.

Media elements (<audio> and <video>)

The ended event is fired at <audio> and <video> when playback reaches the end of the media.

enum CorsSettingAttributeValue {
Anonymous,
UseCredentials,
NoCors,
}
struct ModuleScript {
settings_object: EnvironmentSettingsObject,
module_record: JS::SourceTextModuleRecord,
base_url: Url,
@Ms2ger
Ms2ger / Cargo.toml
Last active November 16, 2015 17:10
bitflags
[package]
name = "bitflags"
version = "0.1.0"
authors = ["Ms2ger <Ms2ger@gmail.com>"]
[lib]
path = "lib.rs"
[dependencies]
bitflags = "*"
[
{
"id": 8505,
"closed": "2015-11-13 11:06:34",
"created": "2015-11-13 05:47:29"
},
{
"id": 8504,
"closed": "2015-11-13 06:11:09",
"created": "2015-11-13 04:47:24"
@Ms2ger
Ms2ger / Cargo.toml
Last active October 23, 2015 12:17
jsapi threading
[package]
name = "test"
version = "0.1.0"
authors = ["Ms2ger <Ms2ger@gmail.com>"]
[[bin]]
path = "main.rs"
name = "test"
[dependencies.js]