changeset 10854:577f335418f4

8198610: [TestBug] test.javafx.scene.web.UserDataDirectoryTest logs on stderr Reviewed-by: kcr
author mbilla
date Thu, 01 Mar 2018 00:21:43 +0530
parents 375aedc5702a
children 75647ec072e9
files modules/javafx.web/src/test/java/test/javafx/scene/web/UserDataDirectoryTest.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/javafx.web/src/test/java/test/javafx/scene/web/UserDataDirectoryTest.java	Tue Feb 27 08:43:22 2018 -0800
+++ b/modules/javafx.web/src/test/java/test/javafx/scene/web/UserDataDirectoryTest.java	Thu Mar 01 00:21:43 2018 +0530
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 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
@@ -323,6 +323,7 @@
 
     @Test
     public void testAlreadyInUseErrorWithPassiveHandler() {
+        System.err.println("The following error is expected");
         webEngine.setUserDataDirectory(PRE_LOCKED);
         ErrorHandler handler = new ErrorHandler();
         webEngine.setOnError(handler);
@@ -366,6 +367,7 @@
         File f = new File("qux");
         f.createNewFile();
         try {
+            System.err.println("The following error is expected");
             webEngine.setUserDataDirectory(f);
             ErrorHandler handler = new ErrorHandler();
             webEngine.setOnError(handler);
@@ -423,6 +425,7 @@
         System.setSecurityManager(new CustomSecurityManager(FOO));
         ErrorHandler handler = new ErrorHandler();
         try {
+            System.err.println("The following error is expected");
             webEngine.setUserDataDirectory(FOO);
             webEngine.setOnError(handler);
             load(webEngine, url);