# HG changeset patch # User akolarkunnu # Date 1518784583 -19800 # Node ID 68b37374319c5c19ca2c581a2f217013dbbac1f3 # Parent 96ea4dff640e3683ad05fd5f7fe2bf55f8e2ea7e 8196338: [TEST_BUG] sanity/client/SwingSet/src/TextFieldDemoTest.java Failed with timeout Reviewed-by: ssadetsky diff -r 96ea4dff640e -r 68b37374319c test/jdk/sanity/client/SwingSet/src/TextFieldDemoTest.java --- a/test/jdk/sanity/client/SwingSet/src/TextFieldDemoTest.java Thu Feb 15 17:20:57 2018 -0800 +++ b/test/jdk/sanity/client/SwingSet/src/TextFieldDemoTest.java Fri Feb 16 18:06:23 2018 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -101,6 +101,7 @@ JButtonOperator jbo = new JButtonOperator(containerOperator, GO); JLabelOperator dowLabel = new JLabelOperator(containerOperator); Calendar calendar = Calendar.getInstance(Locale.ENGLISH); + calendar.setTime((Date) getUIValue(jtfo, jtf -> ((JFormattedTextField)jtf).getValue())); // Check default date Day of the Week jbo.push();