Skip to content

Commit

Permalink
Launch amp-google-document-embed (ampproject#17368)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvializ authored and Enriqe committed Nov 28, 2018
1 parent 69a989b commit 3b5da8d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

import {addParamToUrl} from '../../../src/url';
import {dev, user} from '../../../src/log';
import {isExperimentOn} from '../../../src/experiments';
import {isLayoutSizeDefined} from '../../../src/layout';
import {removeElement} from '../../../src/dom';

Expand Down Expand Up @@ -75,8 +74,6 @@ export class AmpDriveViewer extends AMP.BaseElement {

/** @override */
buildCallback() {
user().assert(isExperimentOn(this.win, 'amp-google-document-embed'),
'Experiment amp-google-document-embed is disabled');
user().assert(
this.element.getAttribute('src'),
'The src attribute is required for <amp-google-document-embed> %s',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
* limitations under the License.
*/

import {TAG} from '../amp-google-document-embed';
import {toggleExperiment} from '../../../../src/experiments';
import '../amp-google-document-embed';

describes.realWin('amp-google-document-embed', {
amp: {
Expand All @@ -27,7 +26,6 @@ describes.realWin('amp-google-document-embed', {
beforeEach(() => {
win = env.win;
doc = win.document;
toggleExperiment(win, TAG, true);
});

function getDriveViewer(src, opt_responsive) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ limitations under the License.
<td>fill, fixed, fixed-height, flex-item, nodisplay, responsive</td>
</tr>
<tr>
<td width="40%"><strong>Availability</strong></td>
<td><div><a href="https://www.ampproject.org/docs/reference/experimental.html">Experimental</a></td>
<td width="40%"><strong>Examples</strong></td>
<td>See AMP By Example's <a href="https://ampbyexample.com/components/amp-google-document-embed/">amp-google-document-embed example</a>.</td>
</tr>
<!-- TODO(cvializ): Make examples -->
</table>

[TOC]
Expand Down
7 changes: 0 additions & 7 deletions tools/experiments/experiments.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,6 @@ const EXPERIMENTS = [
spec: 'https://github.com/ampproject/amphtml/issues/3434',
cleanupIssue: 'https://github.com/ampproject/amphtml/issues/15158',
},
{
id: 'amp-google-document-embed',
name: 'Enables the experiment amp-google-document-embed component' +
' which is a wrapper around the Google Drive document viewer embed.',
spec: 'TODO',
cleanupIssue: 'TODO',
},
{
id: 'amp-image-slider',
name: 'Enables the experimental amp-image-slider for image comparison',
Expand Down

0 comments on commit 3b5da8d

Please sign in to comment.