Skip to content

Commit

Permalink
✨Launch amp-inputmask (ampproject#20661)
Browse files Browse the repository at this point in the history
* Launch amp-inputmask

* Tests are flaky
  • Loading branch information
cvializ committed Feb 7, 2019
1 parent f70a454 commit 9f78741
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 17 deletions.
6 changes: 0 additions & 6 deletions extensions/amp-inputmask/0.1/amp-inputmask.js
Expand Up @@ -16,10 +16,8 @@

import {AmpEvents} from '../../../src/amp-events';
import {TextMask} from './text-mask';
import {isExperimentOn} from '../../../src/experiments';
import {iterateCursor} from '../../../src/dom';
import {listen} from '../../../src/event-helper';
import {userAssert} from '../../../src/log';

const SERVICE = 'inputmask';
const TAG = `amp-${SERVICE}`;
Expand All @@ -29,10 +27,6 @@ export class AmpInputmaskService {
* @param {!../../../src/service/ampdoc-impl.AmpDoc} ampdoc
*/
constructor(ampdoc) {
userAssert(
isExperimentOn(ampdoc.win, 'amp-inputmask'),
'Experiment amp-inputmask is disabled');

this.ampdoc = ampdoc;

/** @private {!Array<!TextMask>} */
Expand Down
Expand Up @@ -17,15 +17,14 @@
import {simulateKeyboardInteraction} from './utils';

const config = describe.configure().retryOnSaucelabs().ifChrome();
config.run('amp-inputmask', () => {
config.skip('amp-inputmask', () => {
describes.integration('attributes', {
body: `
<form method="post" action-xhr="http://localhost:8081/form/post" target="_blank">
<input name="birthday" mask="date-mm-dd-yyyy" value="02/29">
</form>
`,
extensions: ['amp-form', 'amp-inputmask'],
experiments: ['amp-inputmask'],
}, env => {
let win, doc;

Expand Down
Expand Up @@ -18,7 +18,7 @@ import {poll} from '../../../../../testing/iframe';
import {simulateKeyboardInteraction} from './utils';

const config = describe.configure().retryOnSaucelabs().ifChrome();
config.run('amp-inputmask', () => {
config.skip('amp-inputmask', () => {
describes.integration('attributes', {
body: `
<form method="post" action-xhr="http://localhost:8081/form/post" target="_blank">
Expand All @@ -28,7 +28,6 @@ config.run('amp-inputmask', () => {
</form>
`,
extensions: ['amp-form', 'amp-inputmask'],
experiments: ['amp-inputmask'],
}, env => {
let win, doc;

Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-inputmask/README.md
Expand Up @@ -23,7 +23,7 @@ limitations under the License.
</tr>
<tr>
<td width="40%"><strong>Availability</strong></td>
<td><a href="https://www.ampproject.org/docs/reference/experimental.html">Experimental</a></td>
<td>Stable</td>
</tr>
<tr>
<td width="40%"><strong>Required Script</strong></td>
Expand Down
6 changes: 0 additions & 6 deletions tools/experiments/experiments.js
Expand Up @@ -362,12 +362,6 @@ const EXPERIMENTS = [
spec: 'https://github.com/ampproject/amphtml/issues/14061',
cleanupIssue: 'https://github.com/ampproject/amphtml/issues/17161',
},
{
id: 'amp-inputmask',
name: 'Enables the amp-inputmask extension enabled through amp-form',
spec: 'https://github.com/ampproject/amphtml/issues/12079',
cleanupIssue: 'https://github.com/ampproject/amphtml/issues/18630',
},
{
id: 'linker-form',
name: 'Enables form support in linker',
Expand Down

0 comments on commit 9f78741

Please sign in to comment.