var div = document.querySelector("#test");
test(function () {
div.style[headProp("border")] = "0.5px dashed #000";
- var borderWidth = GetCurrentStyle("border-width");
- var armv8 = tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv8");
- var arch = tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch");
- if (armv8 && arch === 'aarch64'){
- assert_equals(borderWidth, "0.5px", "The border-width value");
+ var border_width = GetCurrentStyle("border-width");
+ var default_border_width = 1;
+ if(chromeversion === M108){
+ var result_to_compare = (default_border_width / window.devicePixelRatio).toString() + 'px';
}else{
- assert_equals(borderWidth, "1px", "The border-width value");
+ var result_to_compare = (default_border_width).toString() + 'px';
}
+ assert_equals(border_width, result_to_compare, "The border-width value");
var borderStyle = GetCurrentStyle("border-style");
assert_equals(borderStyle, "dashed", "The border-style value");
var borderColor = GetCurrentStyle("border-color");
*/
+var M108 = '108'
+var chromeversion = (function getChromeVersion() {
+ var chromeVer = navigator.userAgent.match(/Chrome\/(\d+)/);
+ if (chromeVer && chromeVer.length > 1) {
+ var versionNumber = chromeVer[1];
+ return versionNumber;
+ } else {
+ return '';
+ }
+})()
var browser = (function getBrowser() {
if (navigator.userAgent.indexOf("WebKit") > 0) {
return "webkit";
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="support/user.js"></script>
+ <script type="text/javascript" src="support/cssstyle.js"></script>
<style type="text/css">
#test{
height: 100px;
var column_rule_width = GetCurrentStyle("columnRuleWidth");
var t = async_test(document.title, {timeout: 500});
t.step(function () {
- if(ARMV8 && ARCH === 'aarch64'){
- assert_equals(column_rule_width, "1.5px", "The div column-rule-width");
+ var default_column_rule_width = 3;
+ if(chromeversion === M108){
+ var result_to_compare = (default_column_rule_width / window.devicePixelRatio).toString() + 'px';
}else{
- assert_equals(column_rule_width, "3px", "The div column-rule-width");
+ var result_to_compare = (default_column_rule_width).toString() + 'px';
}
+ assert_equals(column_rule_width, result_to_compare, "The element column-rule-width")
});
t.done();
</script>
<script type="text/javascript" src="../resources/testharness.js"></script>
<script type="text/javascript" src="../resources/testharnessreport.js"></script>
<script type="text/javascript" src="support/cssstyle.js"></script>
- <script src="support/user.js"></script>
<style>
#test{
height: 100px;
var columnRuleColor = GetCurrentStyle("column-rule-color");
var propcolumnRuleColor = columnRuleColor.indexOf("rgb(0, 0, 0)") != -1;
assert_true(propcolumnRuleColor, "The element column-rule-color should not be rgb(0, 0, 0)");
- var columnRuleWidth = GetCurrentStyle("columnRuleWidth");
- if(ARMV8 && ARCH === 'aarch64'){
- var propcolumnRuleWidth = columnRuleWidth.indexOf("1.5px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 1.5px");
+ var column_rule_width = GetCurrentStyle("columnRuleWidth");
+ var default_column_rule_width = 3;
+ if(chromeversion === M108){
+ var result_to_compare = (default_column_rule_width / window.devicePixelRatio).toString() + 'px';
}else{
- var propcolumnRuleWidth = columnRuleWidth.indexOf("3px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 3px");
+ var result_to_compare = (default_column_rule_width).toString() + 'px';
}
+ assert_equals(column_rule_width, result_to_compare, "The element column-rule-width")
var columnRuleStyle = GetCurrentStyle("column-rule-style");
var propcolumnRuleStyle = columnRuleStyle.indexOf("dashed") != -1;
assert_true(propcolumnRuleStyle, "The element column-rule-style should not be dashed");
<script type="text/javascript" src="../resources/testharness.js"></script>
<script type="text/javascript" src="../resources/testharnessreport.js"></script>
<script type="text/javascript" src="support/cssstyle.js"></script>
- <script src="support/user.js"></script>
<style>
#test{
height: 100px;
var columnRuleColor = GetCurrentStyle("column-rule-color");
var propcolumnRuleColor = columnRuleColor.indexOf("rgb(0, 0, 0)") != -1;
assert_true(propcolumnRuleColor, "The element column-rule-color should not be rgb(0, 0, 0)");
- var columnRuleWidth = GetCurrentStyle("columnRuleWidth");
- if(ARMV8 && ARCH === 'aarch64'){
- var propcolumnRuleWidth = columnRuleWidth.indexOf("1.5px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 1.5px");
+ var column_rule_width = GetCurrentStyle("columnRuleWidth");
+ var default_column_rule_width = 3;
+ if(chromeversion === M108){
+ var result_to_compare = (default_column_rule_width / window.devicePixelRatio).toString() + 'px';
}else{
- var propcolumnRuleWidth = columnRuleWidth.indexOf("3px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 3px");
+ var result_to_compare = (default_column_rule_width).toString() + 'px';
}
+ assert_equals(column_rule_width, result_to_compare, "The element column-rule-width")
var columnRuleStyle = GetCurrentStyle("column-rule-style");
var propcolumnRuleStyle = columnRuleStyle.indexOf("dotted") != -1;
assert_true(propcolumnRuleStyle, "The element column-rule-style should not be dotted");
<script type="text/javascript" src="../resources/testharness.js"></script>
<script type="text/javascript" src="../resources/testharnessreport.js"></script>
<script type="text/javascript" src="support/cssstyle.js"></script>
- <script src="support/user.js"></script>
<style>
#test{
height: 100px;
var columnRuleColor = GetCurrentStyle("column-rule-color");
var propcolumnRuleColor = columnRuleColor.indexOf("rgb(0, 0, 0)") != -1;
assert_true(propcolumnRuleColor, "The element column-rule-color should not be rgb(0, 0, 0)");
- var columnRuleWidth = GetCurrentStyle("columnRuleWidth");
- if(ARMV8 && ARCH === 'aarch64'){
- var propcolumnRuleWidth = columnRuleWidth.indexOf("1.5px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 1.5px");
+ var column_rule_width = GetCurrentStyle("columnRuleWidth");
+ var default_column_rule_width = 3;
+ if(chromeversion === M108){
+ var result_to_compare = (default_column_rule_width / window.devicePixelRatio).toString() + 'px';
}else{
- var propcolumnRuleWidth = columnRuleWidth.indexOf("3px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 3px");
+ var result_to_compare = (default_column_rule_width).toString() + 'px';
}
+ assert_equals(column_rule_width, result_to_compare, "The element column-rule-width")
var columnRuleStyle = GetCurrentStyle("column-rule-style");
var propcolumnRuleStyle = columnRuleStyle.indexOf("double") != -1;
assert_true(propcolumnRuleStyle, "The element column-rule-style should not be double");
<script type="text/javascript" src="../resources/testharness.js"></script>
<script type="text/javascript" src="../resources/testharnessreport.js"></script>
<script type="text/javascript" src="support/cssstyle.js"></script>
- <script src="support/user.js"></script>
<style>
#test{
height: 100px;
var propcolumnRuleColor = columnRuleColor.indexOf("rgb(0, 128, 0)") != -1;
assert_true(propcolumnRuleColor, "The element column-rule-color should not be rgb(255, 0, 0)");
var columnRuleWidth = GetCurrentStyle("columnRuleWidth");
- if(ARMV8 && ARCH === 'aarch64'){
- var propcolumnRuleWidth = columnRuleWidth.indexOf("1.5px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 1.5px");
+ var column_rule_width = GetCurrentStyle("columnRuleWidth");
+ var default_column_rule_width = 3;
+ if(chromeversion === M108){
+ var result_to_compare = (default_column_rule_width / window.devicePixelRatio).toString() + 'px';
}else{
- var propcolumnRuleWidth = columnRuleWidth.indexOf("3px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 3px");
+ var result_to_compare = (default_column_rule_width).toString() + 'px';
}
+ assert_equals(column_rule_width, result_to_compare, "The element column-rule-width")
var columnRuleStyle = GetCurrentStyle("column-rule-style");
var propcolumnRuleStyle = columnRuleStyle.indexOf("inset") != -1;
assert_true(propcolumnRuleStyle, "The element column-rule-style should not be inset");
<script type="text/javascript" src="../resources/testharness.js"></script>
<script type="text/javascript" src="../resources/testharnessreport.js"></script>
<script type="text/javascript" src="support/cssstyle.js"></script>
- <script src="support/user.js"></script>
<style>
#test{
height: 100px;
var columnRuleColor = GetCurrentStyle("column-rule-color");
var propcolumnRuleColor = columnRuleColor.indexOf("rgb(0, 128, 0)") != -1;
assert_true(propcolumnRuleColor, "The element column-rule-color should not be rgb(255, 0, 0)");
- var columnRuleWidth = GetCurrentStyle("columnRuleWidth");
- if(ARMV8 && ARCH === 'aarch64'){
- var propcolumnRuleWidth = columnRuleWidth.indexOf("1.5px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 1.5px");
+ var column_rule_width = GetCurrentStyle("columnRuleWidth");
+ var default_column_rule_width = 3;
+ if(chromeversion === M108){
+ var result_to_compare = (default_column_rule_width / window.devicePixelRatio).toString() + 'px';
}else{
- var propcolumnRuleWidth = columnRuleWidth.indexOf("3px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 3px");
+ var result_to_compare = (default_column_rule_width).toString() + 'px';
}
+ assert_equals(column_rule_width, result_to_compare, "The element column-rule-width")
var columnRuleStyle = GetCurrentStyle("column-rule-style");
var propcolumnRuleStyle = columnRuleStyle.indexOf("outset") != -1;
assert_true(propcolumnRuleStyle, "The element column-rule-style should not be outset");
<script type="text/javascript" src="../resources/testharness.js"></script>
<script type="text/javascript" src="../resources/testharnessreport.js"></script>
<script type="text/javascript" src="support/cssstyle.js"></script>
- <script src="support/user.js"></script>
<style>
#test{
height: 100px;
var columnRuleColor = GetCurrentStyle("column-rule-color");
var propcolumnRuleColor = columnRuleColor.indexOf("rgb(0, 128, 0)") != -1;
assert_true(propcolumnRuleColor, "The element column-rule-color should not be rgb(255, 0, 0)");
- var columnRuleWidth = GetCurrentStyle("columnRuleWidth");
- if(ARMV8 && ARCH === 'aarch64'){
- var propcolumnRuleWidth = columnRuleWidth.indexOf("1.5px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 1.5px");
+ var column_rule_width = GetCurrentStyle("columnRuleWidth");
+ var default_column_rule_width = 3;
+ if(chromeversion === M108){
+ var result_to_compare = (default_column_rule_width / window.devicePixelRatio).toString() + 'px';
}else{
- var propcolumnRuleWidth = columnRuleWidth.indexOf("3px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 3px");
+ var result_to_compare = (default_column_rule_width).toString() + 'px';
}
+ console.log(chromeversion, column_rule_width, result_to_compare, window.devicePixelRatio)
+ assert_equals(column_rule_width, result_to_compare, "The element column-rule-width")
var columnRuleStyle = GetCurrentStyle("column-rule-style");
var propcolumnRuleStyle = columnRuleStyle.indexOf("solid") != -1;
assert_true(propcolumnRuleStyle, "The element column-rule-style should not be solid");
<script type="text/javascript" src="../resources/testharness.js"></script>
<script type="text/javascript" src="../resources/testharnessreport.js"></script>
<script type="text/javascript" src="support/cssstyle.js"></script>
- <script src="support/user.js"></script>
<style>
#test{
height: 100px;
var columnRuleColor = GetCurrentStyle("column-rule-color");
var propcolumnRuleColor = columnRuleColor.indexOf("rgb(0, 0, 0)") != -1;
assert_true(propcolumnRuleColor, "The element column-rule-color should not be rgb(0, 0, 0)");
- var columnRuleWidth = GetCurrentStyle("columnRuleWidth");
- if(ARMV8 && ARCH === 'aarch64'){
- var propcolumnRuleWidth = columnRuleWidth.indexOf("1.5px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 1.5px");
+ var column_rule_width = GetCurrentStyle("columnRuleWidth");
+ var default_column_rule_width = 3;
+ if(chromeversion === M108){
+ var result_to_compare = (default_column_rule_width / window.devicePixelRatio).toString() + 'px';
}else{
- var propcolumnRuleWidth = columnRuleWidth.indexOf("3px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 3px");
+ var result_to_compare = (default_column_rule_width).toString() + 'px';
}
+ assert_equals(column_rule_width, result_to_compare, "The element column-rule-width")
var columnRuleStyle = GetCurrentStyle("column-rule-style");
var propcolumnRuleStyle = columnRuleStyle.indexOf("groove") != -1;
assert_true(propcolumnRuleStyle, "The element column-rule-style should not be groove");
<script type="text/javascript" src="../resources/testharness.js"></script>
<script type="text/javascript" src="../resources/testharnessreport.js"></script>
<script type="text/javascript" src="support/cssstyle.js"></script>
- <script src="support/user.js"></script>
<style>
#test{
height: 100px;
var columnRuleColor = GetCurrentStyle("column-rule-color");
var propcolumnRuleColor = columnRuleColor.indexOf("rgb(255, 192, 203)") != -1;
assert_true(propcolumnRuleColor, "The element column-rule-color should not be pink");
- var columnRuleWidth = GetCurrentStyle("columnRuleWidth");
- if(ARMV8 && ARCH === 'aarch64'){
- var propcolumnRuleWidth = columnRuleWidth.indexOf("1.5px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 1.5px");
+ var column_rule_width = GetCurrentStyle("columnRuleWidth");
+ var default_column_rule_width = 3;
+ if(chromeversion === M108){
+ var result_to_compare = (default_column_rule_width / window.devicePixelRatio).toString() + 'px';
}else{
- var propcolumnRuleWidth = columnRuleWidth.indexOf("3px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 3px");
+ var result_to_compare = (default_column_rule_width).toString() + 'px';
}
+ assert_equals(column_rule_width, result_to_compare, "The element column-rule-width")
var columnRuleStyle = GetCurrentStyle("column-rule-style");
var propcolumnRuleStyle = columnRuleStyle.indexOf("ridge") != -1;
assert_true(propcolumnRuleStyle, "The element column-rule-style should not be ridge");
<script type="text/javascript" src="../resources/testharness.js"></script>
<script type="text/javascript" src="../resources/testharnessreport.js"></script>
<script type="text/javascript" src="support/cssstyle.js"></script>
- <script src="support/user.js"></script>
<style>
#test{
height: 100px;
var columnRuleColor = GetCurrentStyle("column-rule-color");
var propcolumnRuleColor = columnRuleColor.indexOf("rgb(0, 0, 0)") != -1;
assert_true(propcolumnRuleColor, "The element column-rule-color should not be rgb(0, 0, 0)");
- var columnRuleWidth = GetCurrentStyle("columnRuleWidth");
- if(ARMV8 && ARCH === 'aarch64'){
- var propcolumnRuleWidth = columnRuleWidth.indexOf("1.5px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 1.5px");
+ var column_rule_width = GetCurrentStyle("columnRuleWidth");
+ var default_column_rule_width = 3;
+ if(chromeversion === M108){
+ var result_to_compare = (default_column_rule_width / window.devicePixelRatio).toString() + 'px';
}else{
- var propcolumnRuleWidth = columnRuleWidth.indexOf("3px") != -1;
- assert_true(propcolumnRuleWidth, "The element column-rule-width should not be 3px");
+ var result_to_compare = (default_column_rule_width).toString() + 'px';
}
+ assert_equals(column_rule_width, result_to_compare, "The element column-rule-width")
var columnRuleStyle = GetCurrentStyle("column-rule-style");
var propcolumnRuleStyle = columnRuleStyle.indexOf("solid") != -1;
assert_true(propcolumnRuleStyle, "The element column-rule-style should not be solid");
*/
+var M108 = '108'
+var chromeversion = (function getChromeVersion() {
+ var chromeVer = navigator.userAgent.match(/Chrome\/(\d+)/);
+ if (chromeVer && chromeVer.length > 1) {
+ var versionNumber = chromeVer[1];
+ return versionNumber;
+ } else {
+ return '';
+ }
+})()
var browser = (function getBrowser() {
if (navigator.userAgent.indexOf("WebKit") > 0) {
return "webkit";
*/
-var ARMV8 = tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv8");
-var ARCH = tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch");
function GetCurrentStyle(prop) {
var div = document.querySelector("#test");