This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test('calling toggle() method changes the modal visibility', () => { | |
// Arrange | |
const initialVisibility = isVisilble(sut); // false | |
// Act | |
sut.toggle(); | |
// Assert | |
assert.notEqual(isVisilble(sut), initialVisibility); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
suite('Setting "opened" as true', () => { | |
const sut = fixture('someId'); | |
suiteSetup(() => { | |
sut.opened = true; | |
}); | |
test('opens the modal', () => { | |
assert.isTrue(isVisible(sut)); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"key": "shift+'", | |
"command": "editor.action.insertSnippet", | |
"when": "editorTextFocus && editorLangId == html", | |
"args": { | |
"snippet": "\"$1\"" | |
} | |
}, | |
{ | |
"key": "'", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2018-10-27T22:08:26.910Z","extensionVersion":"v3.2.0"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg width="160" height="160" viewBox="0 0 160 160" class="vscode-logo"> | |
<g> | |
<path class="p1" d="M 3 115 L 3 115 L 16 120 L 16 120 L 3 115 Z"></path> | |
<path class="p2" d="M 112 6 L 148 21 L 148 21 L 112 6 L 112 6 Z"></path> | |
<path class="p3" d="M 148 135 L 112 152 L 112 152 L 148 135 L 148 135 Z"></path> | |
</g> | |
</svg> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
<dom-module id="${1:custom-element}"> | |
<template> | |
<style> | |
:host { | |
display: block; | |
} | |
</style> | |
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dom-module id="my-component"> | |
<template> | |
<paper-toast text="[[greeting]]"></paper-toast> | |
</template> | |
<script> | |
Polymer({ | |
is: 'my-component', | |
properties: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta name="description" content="Example of a two-way binding that has no effect on the host property"> | |
<base href="https://polygit.org/polymer+:master/webcomponents+:master/shadycss+webcomponents+:master/components/"> | |
<script src="webcomponentsjs/webcomponents-lite.js"></script> | |
<link rel="import" href="polymer/polymer.html"> | |
<link rel="import" href="paper-toast/paper-toast.html"> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
function clearStyleWarnings(fn) { | |
return function(first, ...rest) { | |
if (!first.match('Could not find style data')) { | |
fn.call(this, first, ...rest); | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// stylelint-disable at-rule-no-vendor-prefix, declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix | |
// Reboot | |
// | |
// Normalization of HTML elements, manually forked from Normalize.css to remove | |
// styles targeting irrelevant browsers while applying new styles. | |
// | |
// Normalize is licensed MIT. https://github.com/necolas/normalize.css | |