From b96861c1809d12f2d1339fd64f825a3c513977d2 Mon Sep 17 00:00:00 2001 From: Miki Date: Fri, 6 Feb 2015 14:49:03 +0200 Subject: Fix declarative support for AbstractMedia (#16330 #16331 #16332) Also fixes HTTPS resource handling (#17267) Contains tests for both Audio and Video. Change-Id: Id4a7325f0d29f6857ff2236757b28b9eb911e39a --- .../component/audio/AudioDeclarativeTest.java | 63 ++++++++++++++++++++++ .../component/audio/VideoDeclarativeTest.java | 59 ++++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 server/tests/src/com/vaadin/tests/server/component/audio/AudioDeclarativeTest.java create mode 100644 server/tests/src/com/vaadin/tests/server/component/audio/VideoDeclarativeTest.java (limited to 'server/tests') diff --git a/server/tests/src/com/vaadin/tests/server/component/audio/AudioDeclarativeTest.java b/server/tests/src/com/vaadin/tests/server/component/audio/AudioDeclarativeTest.java new file mode 100644 index 0000000000..4390499c4e --- /dev/null +++ b/server/tests/src/com/vaadin/tests/server/component/audio/AudioDeclarativeTest.java @@ -0,0 +1,63 @@ +/* + * Copyright 2000-2014 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.vaadin.tests.server.component.audio; + +import java.io.File; + +import org.junit.Test; + +import com.vaadin.server.ExternalResource; +import com.vaadin.server.FileResource; +import com.vaadin.tests.design.DeclarativeTestBase; +import com.vaadin.ui.Audio; + +/** + * Tests specs of declarative support for abstract media and its + * implementations. + * + * @since 7.4 + * @author Vaadin Ltd + */ +public class AudioDeclarativeTest extends DeclarativeTestBase