-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b09400
commit 1619063
Showing
32 changed files
with
239 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
rootUrl: http://localhost:8080/components/vaadin-date-picker/test/visual/ | ||
gridUrl: http://localhost:4444/wd/hub | ||
screenshotsDir: ./test/visual/screens | ||
windowSize: 1024x768 | ||
|
||
system: | ||
plugins: | ||
polyserve: | ||
port: 8080 | ||
sauce: true | ||
|
||
browsers: | ||
chrome: | ||
desiredCapabilities: | ||
browserName: "chrome" | ||
version: "61.0" | ||
platform: "Windows 10" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
rootUrl: http://localhost:8080/components/vaadin-date-picker/test/visual/ | ||
gridUrl: http://localhost:4444/wd/hub | ||
screenshotsDir: ./test/visual/screens | ||
windowSize: 1024x768 | ||
|
||
system: | ||
plugins: | ||
polyserve: | ||
port: 8080 | ||
sauce: true | ||
|
||
browsers: | ||
firefox: | ||
desiredCapabilities: | ||
browserName: "firefox" | ||
version: "47.0" | ||
platform: "Windows 10" | ||
|
||
ie: | ||
desiredCapabilities: | ||
browserName: "internet explorer" | ||
version: "11.0" | ||
platform: "Windows 10" | ||
|
||
edge: | ||
desiredCapabilities: | ||
browserName: "microsoftedge" | ||
version: "15" | ||
platform: "Windows 10" | ||
|
||
android: | ||
desiredCapabilities: | ||
browserName: "chrome" | ||
platform: "Android" | ||
|
||
# The following setups don't currently work due to Selenium SafariDriver issue | ||
# https://github.com/vaadin/vaadin-element-skeleton/issues/19 | ||
# | ||
# safari: | ||
# desiredCapabilities: | ||
# browserName: "safari" | ||
# version: "10.0" | ||
# platform: "OS X 10.11" | ||
# | ||
# iphone: | ||
# desiredCapabilities: | ||
# browserName: "iphone" | ||
# version: "9.2" | ||
# platform: "OS X 10.11" | ||
# | ||
# ipad: | ||
# desiredCapabilities: | ||
# browserName: "ipad" | ||
# version: "9.2" | ||
# platform: "OS X 10.11" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,8 @@ | |
"rules": { | ||
"no-undef": 0, | ||
"no-unused-vars": 0 | ||
}, | ||
"globals": { | ||
"gemini": false | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
|
||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
|
||
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script> | ||
<link href="../../vaadin-date-picker.html" rel="import"> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="default-tests" style="padding: 10px;"> | ||
Plain | ||
<vaadin-date-picker></vaadin-date-picker> | ||
|
||
<br>Label | ||
<vaadin-date-picker label="Pick a date"></vaadin-date-picker> | ||
|
||
<br>Placeholder | ||
<vaadin-date-picker placeholder="Pick a date"></vaadin-date-picker> | ||
|
||
<br>Disabled | ||
<vaadin-date-picker disabled></vaadin-date-picker> | ||
|
||
<br>Read-only | ||
<vaadin-date-picker readonly></vaadin-date-picker> | ||
|
||
<br>Value | ||
<vaadin-date-picker value="1991-12-20"></vaadin-date-picker> | ||
</div> | ||
|
||
</body> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<!DOCTYPE html> | ||
|
||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
|
||
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script> | ||
|
||
<dom-module id="text-field-styles" theme-for="vaadin-text-field"> | ||
<template> | ||
<style> | ||
/* Hide caret */ | ||
:host [part="value"] { | ||
font-size: 0; | ||
height: 24px; | ||
} | ||
</style> | ||
</template> | ||
</dom-module> | ||
|
||
<dom-module id="month-calendar-test-styles" theme-for="vaadin-month-calendar"> | ||
<template> | ||
<style> | ||
:host(:not([focused])) [part="date"][focused]::before { | ||
animation: none !important; | ||
} | ||
</style> | ||
</template> | ||
</dom-module> | ||
|
||
<link href="../../vaadin-date-picker.html" rel="import"> | ||
</head> | ||
|
||
<body style="height: 100vh;"> | ||
|
||
<div id="dropdown-tests" style="padding: 10px;"> | ||
Plain | ||
<vaadin-date-picker id="plain" initial-position="2013-04-27"></vaadin-date-picker> | ||
|
||
<br>Pre-selected value | ||
<vaadin-date-picker value="1991-12-20" id="selected-value"></vaadin-date-picker> | ||
|
||
<br>Date limit | ||
<vaadin-date-picker min="2017-06-10" max="2017-06-29" initial-position="2017-06-15" id="date-limit"></vaadin-date-picker> | ||
|
||
<br>Week numbers | ||
<vaadin-date-picker show-week-numbers id="weeks" initial-position="2018-04-28"></vaadin-date-picker> | ||
</div> | ||
|
||
<script> | ||
window.addEventListener('WebComponentsReady', function() { | ||
var datepicker = document.querySelector('vaadin-date-picker#weeks'); | ||
datepicker.set('i18n.firstDayOfWeek', 1); | ||
}); | ||
|
||
function closeDatePickers() { | ||
var datePickers = document.querySelectorAll('vaadin-date-picker'); | ||
|
||
[].forEach.call(datePickers, function(datePicker) { | ||
datePicker.close(); | ||
}); | ||
} | ||
</script> | ||
|
||
</body> |
Binary file added
BIN
+15.1 KB
test/visual/screens/vaadin-date-picker/default-tests/default/android.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.9 KB
test/visual/screens/vaadin-date-picker/default-tests/default/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.3 KB
test/visual/screens/vaadin-date-picker/default-tests/default/edge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.4 KB
test/visual/screens/vaadin-date-picker/default-tests/default/firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37.1 KB
test/visual/screens/vaadin-date-picker/dropdown/date-limit/android.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.6 KB
test/visual/screens/vaadin-date-picker/dropdown/date-limit/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.6 KB
test/visual/screens/vaadin-date-picker/dropdown/date-limit/firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.2 KB
test/visual/screens/vaadin-date-picker/dropdown/selected-value/android.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+37 KB
test/visual/screens/vaadin-date-picker/dropdown/selected-value/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.6 KB
test/visual/screens/vaadin-date-picker/dropdown/selected-value/edge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.4 KB
test/visual/screens/vaadin-date-picker/dropdown/selected-value/firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.7 KB
test/visual/screens/vaadin-date-picker/dropdown/selected-value/ie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45.3 KB
test/visual/screens/vaadin-date-picker/dropdown/week-numbers/android.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38 KB
test/visual/screens/vaadin-date-picker/dropdown/week-numbers/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.6 KB
test/visual/screens/vaadin-date-picker/dropdown/week-numbers/edge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.1 KB
test/visual/screens/vaadin-date-picker/dropdown/week-numbers/firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
gemini.suite('vaadin-date-picker', function(rootSuite) { | ||
function wait(actions, find) { | ||
actions.wait(5000); | ||
} | ||
|
||
function goToAboutBlank(actions, find) { | ||
// Firefox stops responding on socket after a test, workaround: | ||
return actions.executeJS(function(window) { | ||
window.location.href = 'about:blank'; // just go away, please! | ||
}); | ||
} | ||
|
||
rootSuite | ||
.before(wait) | ||
.after(goToAboutBlank); | ||
|
||
gemini.suite('default-tests', function(suite) { | ||
suite | ||
.setUrl('default.html') | ||
.setCaptureElements('#default-tests') | ||
.capture('default'); | ||
}); | ||
|
||
gemini.suite('dropdown', function(suite) { | ||
suite | ||
.setUrl('dropdown.html') | ||
.setCaptureElements('body') | ||
.capture('default', function(actions) { | ||
actions.executeJS(function(window) { | ||
window.closeDatePickers(); | ||
window.document.querySelector('#plain').open(); | ||
}); | ||
}) | ||
.capture('selected-value', function(actions) { | ||
actions.executeJS(function(window) { | ||
window.closeDatePickers(); | ||
window.document.querySelector('#selected-value').open(); | ||
}); | ||
}) | ||
.capture('date-limit', function(actions) { | ||
actions.executeJS(function(window) { | ||
window.closeDatePickers(); | ||
window.document.querySelector('#date-limit').open(); | ||
}); | ||
}) | ||
.capture('week-numbers', function(actions) { | ||
actions.executeJS(function(window) { | ||
window.closeDatePickers(); | ||
window.document.querySelector('#weeks').open(); | ||
}); | ||
}); | ||
}); | ||
|
||
}); |