mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Move Add-on SDK source to toolkit/jetpack
This commit is contained in:
parent
0a03067ee3
commit
23b67db438
993 changed files with 484 additions and 100663 deletions
|
|
@ -1,20 +0,0 @@
|
|||
"use strict";
|
||||
|
||||
exports["test common"] = require("./common")
|
||||
|
||||
var Method = require("../core")
|
||||
|
||||
exports["test host objects"] = function(assert) {
|
||||
var isElement = Method("is-element")
|
||||
isElement.define(function() { return false })
|
||||
|
||||
isElement.define(Element, function() { return true })
|
||||
|
||||
assert.notDeepEqual(typeof(Element.prototype[isElement]), "number",
|
||||
"Host object's prototype is extended with a number value")
|
||||
|
||||
assert.ok(!isElement({}), "object is not an Element")
|
||||
assert.ok(document.createElement("div"), "Element is an element")
|
||||
}
|
||||
|
||||
require("test").run(exports)
|
||||
Loading…
Add table
Add a link
Reference in a new issue