Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ios): use arc to create corner radius instead of qudratic curve #11969

Merged
merged 8 commits into from Sep 3, 2020

Conversation

vijaysingh-axway
Copy link
Contributor

@build
Copy link
Contributor

build commented Aug 26, 2020

Fails
🚫 Tests have failed, see below for more information.
Messages
📖

💾 Here's the generated SDK zipfile.

📖 ✊ The commits in this PR match our conventions! Feel free to Rebase and Merge this PR when ready.
📖 ❌ 6 tests have failed There are 6 tests failing and 711 skipped out of 8144 total tests.

Tests:

ClassnameNameTimeError
android.emulator.Titanium.Network.HTTPClientTIMOB-23127 (9)60.021
Error: timeout of 60000ms exceeded
at Titanium.<anonymous> (/ti-mocha.js:6535:53723)
android.emulator.Titanium.Network.Socket.TCP#connect() and #write() async (9)60.107
Error: timeout of 60000ms exceeded
at Titanium.<anonymous> (/ti-mocha.js:6535:53723)
ios.ipad.Titanium.UI.iOS.CollisionBehavior.exampleworks (14.0)10
Error: timeout of 10000ms exceeded
file:///Users/build/Library/Developer/CoreSimulator/Devices/5B6B25D0-3445-48E0-97D6-199BBA69C78B/data/Containers/Bundle/Application/4A153607-4BD1-4691-8F5A-9ABC503122E3/mocha.app/ti-mocha.js:4326:27
ios.ipad.Titanium.UI.WebViewbeforeload (14.0)30
Error: timeout of 30000ms exceeded
file:///Users/build/Library/Developer/CoreSimulator/Devices/5B6B25D0-3445-48E0-97D6-199BBA69C78B/data/Containers/Bundle/Application/4A153607-4BD1-4691-8F5A-9ABC503122E3/mocha.app/ti-mocha.js:4326:27
ios.iphone.Titanium.Network.HTTPClientTIMOB-23214 (14.0)59.999
Error: timeout of 60000ms exceeded
file:///Users/build/Library/Developer/CoreSimulator/Devices/0BA89FD6-590B-4E1C-A92C-C7071914B3F8/data/Containers/Bundle/Application/8E5566A8-EE18-4B04-BE38-168148720015/mocha.app/ti-mocha.js:4326:27
ios.iphone.Titanium.UI.ImageViewimage error event (14.0)5.001
Error: timeout of 5000ms exceeded
file:///Users/build/Library/Developer/CoreSimulator/Devices/0BA89FD6-590B-4E1C-A92C-C7071914B3F8/data/Containers/Bundle/Application/8E5566A8-EE18-4B04-BE38-168148720015/mocha.app/ti-mocha.js:4326:27

Generated by 🚫 dangerJS against d760c88

Copy link
Contributor

@sgtcoolguy sgtcoolguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the test run cross-platform and use the images I included for android. We want to ensure the UI looks/behaves highly consistently cross-platform.

@garymathews
Copy link
Contributor

@vijaysingh-axway could we add a test with viewShadow?

@vijaysingh-axway
Copy link
Contributor Author

@vijaysingh-axway could we add a test with viewShadow?

viewShadow issue is not fixed this PR. I am working on this as part of https://jira.appcelerator.org/browse/TIMOB-28103

@ssjsamir ssjsamir self-requested a review September 3, 2020 12:37
Copy link
Contributor

@ssjsamir ssjsamir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FR Passed, able to use arc to create corner radius instead of quadratic curve. Tested using the following test cases:

const window = Ti.UI.createWindow({ backgroundColor: 'white' });
const view = Ti.UI.createView({
backgroundColor: 'red',
width: 100,
height: 100,
borderRadius: '50 50 50 50'
});
 
window.add(view);
window.open();
var _window = Ti.UI.createWindow({

backgroundColor : 'blue'
});
 
var view = Ti.UI.createView({
left : 10,
height : 100,
width : 100,
top : 10,
backgroundColor : 'white',
borderWidth : 20,
borderColor : 'red',
borderRadius : 10
});
 
var b3 = Ti.UI.createButton({
top : 250,
title : "borderRadius=30/20"
});
b3.addEventListener("click", function() {
view.borderRadius = ['30', '20', '30', '20'];
});
 
var b4 = Ti.UI.createButton({
top : 300,
title : "borderRadius=30 All"
});
b4.addEventListener("click", function() {
view.borderRadius = 30;
});
 
var b5 = Ti.UI.createButton({
top : 350,
title : "borderRadius=0"
});
b5.addEventListener("click", function() {
view.borderRadius = 0;
});
 
_window.add(view);
_window.add(b3);
_window.add(b4);
_window.add(b5);
 
_window.open();
var win = Ti.UI.createWindow({
backgroundColor: '#333'
});
 
var view = Ti.UI.createView({
backgroundColor: '#fff',
height: 350,
bottom: 0,
borderRadius: '20 20dp 20px 12px',
});
 
win.add(view);
win.open();

Test Environment

MacOS Big Sur: 11.0 Beta 5
Xcode: 12.0 Beta 5
Java Version: 1.8.0_242
Android NDK: 21.3.6528147
Node.js: 12.18.1
""NPM":"5.0.0","CLI":"8.1.0-master.11""
iphone 8 Sim (14.0 Beta)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants