From 83aa7d63a5e9945787fa19c83765fb5eaf0f2437 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Thu, 19 Jul 2018 19:39:23 +0200 Subject: [PATCH] Add a test to show that #2509 is not reproductible. --- src/tests/kits/interface/TextViewTestManual.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tests/kits/interface/TextViewTestManual.cpp b/src/tests/kits/interface/TextViewTestManual.cpp index 9bbc0404db..0b316bac47 100644 --- a/src/tests/kits/interface/TextViewTestManual.cpp +++ b/src/tests/kits/interface/TextViewTestManual.cpp @@ -46,6 +46,11 @@ Window::Window() fTextControl = new BTextControl("text-contr-O", "a single line of text - (c) Conglom-O", NULL); + BMessage storage; + fTextControl->Archive(&storage); + + BTextControl* unarchived = new BTextControl(&storage); + BTextControl* disabled = new BTextControl("disabled", "I'm disabled: you can't edit me", NULL); disabled->SetEnabled(false); @@ -60,6 +65,7 @@ Window::Window() SetLayout(new BGroupLayout(B_HORIZONTAL)); AddChild(BGroupLayoutBuilder(B_VERTICAL, 10) .Add(fTextControl) + .Add(unarchived) .Add(disabled) .Add(invalid) .Add(scrollView)