From 6800ab240a425ba0e2b1a0bb9a0f8228c96a79ae Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 25 Oct 2009 23:06:20 -0400 Subject: [PATCH] clean up some tests --- test/selenium/TestCreatePost.html | 4 ++-- .../TestMetaboxApprovedTranscriptEditing.html | 14 +++++++------- what-did-they-say.php | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/selenium/TestCreatePost.html b/test/selenium/TestCreatePost.html index ae48adc..4364691 100644 --- a/test/selenium/TestCreatePost.html +++ b/test/selenium/TestCreatePost.html @@ -23,7 +23,7 @@ type - //textarea[@name="wdts[transcripts][en]"] + //textarea[@name="wdts[transcripts][en][transcript]"] This is a test transcript inserted on creation. @@ -48,7 +48,7 @@ assertValue - //textarea[@name="wdts[transcripts][en]"] + //textarea[@name="wdts[transcripts][en][transcript]"] This is a test transcript inserted on creation. diff --git a/test/selenium/TestMetaboxApprovedTranscriptEditing.html b/test/selenium/TestMetaboxApprovedTranscriptEditing.html index 6a12ded..966dd9f 100644 --- a/test/selenium/TestMetaboxApprovedTranscriptEditing.html +++ b/test/selenium/TestMetaboxApprovedTranscriptEditing.html @@ -23,12 +23,12 @@ assertVisible - //textarea[@name="wdts[transcripts][en]"] + //textarea[@name="wdts[transcripts][en][transcript]"] type - //textarea[@name="wdts[transcripts][en]"] + //textarea[@name="wdts[transcripts][en][transcript]"] This is a test transcript. @@ -38,17 +38,17 @@ assertVisible - //textarea[@name="wdts[transcripts][de]"] + //textarea[@name="wdts[transcripts][de][transcript]"] assertNotVisible - //textarea[@name="wdts[transcripts][en]"] + //textarea[@name="wdts[transcripts][en][transcript]"] type - //textarea[@name="wdts[transcripts][de]"] + //textarea[@name="wdts[transcripts][de][transcript]"] Dies ist ein Test transcript. @@ -63,12 +63,12 @@ assertValue - //textarea[@name="wdts[transcripts][en]"] + //textarea[@name="wdts[transcripts][en][transcript]"] This is a test transcript. assertValue - //textarea[@name="wdts[transcripts][de]"] + //textarea[@name="wdts[transcripts][de][transcript]"] Dies ist ein Test transcript. diff --git a/what-did-they-say.php b/what-did-they-say.php index afeca85..a639b17 100644 --- a/what-did-they-say.php +++ b/what-did-they-say.php @@ -138,7 +138,7 @@ function transcripts_display($language_format = null, $show_transcripts_string = foreach ($post_transcripts as $transcript) { $transcript_text = trim($transcript['transcript']); if (!empty($transcript_text)) { - $transcripts[$transcript_language] = $transcript; + $transcripts[$transcript['language']] = $transcript; } }