Publish Vulpes Preview 15 sources for desktop, Android and Tundra

Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
OverSu 2026-09-30 23:13:03 +02:00
commit b38dea0597
25901 changed files with 9982925 additions and 369 deletions

View file

@ -0,0 +1,41 @@
'use strict';
require('/shared/js/component_utils.js');
require('/shared/elements/gaia_menu/script.js');
suite('GaiaMenu', function() {
setup(function() {
this.container = document.createElement('div');
this.container.innerHTML =
'<gaia-menu>' +
'<header>title</header>' +
'<button>button1</button>'+
'<button>button2</button>'+
'</gaia-menu>';
this.element = this.container.firstElementChild;
});
test('Content is populated', function() {
// Validate header
var headers = this.element.querySelectorAll('header');
assert.equal(headers.length, 1);
assert.equal(headers[0].textContent, 'title');
// Validate button
var buttons = this.element.querySelectorAll('button');
assert.equal(buttons.length, 2);
// Validate a 'cancel' button was added
var cancelButton = this.element.shadowRoot.querySelector('button');
assert.equal(cancelButton.textContent, 'Cancel');
});
test('Cancel event is dispatched', function(done) {
this.element.addEventListener('gaiamenu-cancel', function(e) {
done();
});
this.element.shadowRoot.querySelector('button')
.dispatchEvent(new CustomEvent('click'));
});
});