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

JBPM-8858 [Stunner] Lienzo - Unit Testing for the core migration to n… #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

treblereel
Copy link

@treblereel treblereel requested a review from romartin November 8, 2019 16:45
@romartin romartin requested a review from hasys November 11, 2019 15:06
Copy link
Member

@hasys hasys left a comment

Choose a reason for hiding this comment

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

Hi @treblereel, @romartin,

I did a quick look at the code and commented some lines (mostly FIXME and TODOs). But also questions about Java version upgrade, copy/pasted code from 3rd parties and suites.

Also it is not fully clear to me what is what :) How to build those tests? Which version of lienzo-core should I use?

Thank you @treblereel, looks good otherwise :)

/**
* @author Dmitrii Tikhomirov
* Created by treblereel 11/5/19
*/
Copy link
Member

Choose a reason for hiding this comment

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

We doesn't use @author java doc.

/**
* @author Dmitrii Tikhomirov
* Created by treblereel 10/30/19
*/
Copy link
Member

Choose a reason for hiding this comment

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

We doesn't use @author java doc.

/**
* @author Dmitrii Tikhomirov
* Created by treblereel 11/8/19
*/
Copy link
Member

Choose a reason for hiding this comment

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

We doesn't use @author java doc.

/**
* @author Dmitrii Tikhomirov
* Created by treblereel 10/30/19
*/
Copy link
Member

Choose a reason for hiding this comment

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

We doesn't use @author java doc.

/**
* @author Dmitrii Tikhomirov
* Created by treblereel 11/8/19
*/
Copy link
Member

Choose a reason for hiding this comment

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

We doesn't use @author java doc.

public final Point2DArray set(final int i, final Point2D p) {


/* if(i >= holder.size()) {
Copy link
Member

Choose a reason for hiding this comment

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

Commented code should be fixed or removed.


private static final String toDataURL(final elemental2.dom.HTMLCanvasElement element)
{
return element.toDataURL(null); // @FIXME Make sure this accepts null (mdp)
Copy link
Member

Choose a reason for hiding this comment

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

FIXME should be fixed.

return element.toDataURL(null); // @FIXME Make sure this accepts null (mdp)
}

// TODO other arguments, e.g. for image/jpeg The second argument, if it is a number in the range 0.0 to 1.0 inclusive, must be treated as the desired quality level. If it is not a number or is outside that range, the user agent must use its default value, as if the argument had been omitted.
Copy link
Member

Choose a reason for hiding this comment

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

TODO should be fixed

* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
Copy link
Member

Choose a reason for hiding this comment

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

Is it copy-pasted code from Google? Should we use it? CC @mdproctor @romartin

LienzoCoreAttributesTest.class,
PointsTest.class,
PointsMockTest.class,
})
Copy link
Member

Choose a reason for hiding this comment

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

Same about this Suite, we had it in the past and it was pain, should we introduce it again?

CC @romartin

@romartin
Copy link
Collaborator

Merged into romartin@7890405

Anyway KEEPING IT opened because of @hasys comments - please @treblereel we should take care of those

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

Successfully merging this pull request may close these issues.

3 participants