Title: [142003] trunk
- Revision
- 142003
- Author
- d...@apple.com
- Date
- 2013-02-06 09:27:03 -0800 (Wed, 06 Feb 2013)
Log Message
Minor updates to captions menu UI
https://bugs.webkit.org/show_bug.cgi?id=109005
Reviewed by Eric Carlson.
Now that we only have a single section in the captions menu, remove the
unnecessary wrapper element. Also update the UI for Mac so that the menu
grows in size dynamically, and change the text we display for a caption
that has neither label or language identifiers.
Covered by existing tests.
* English.lproj/Localizable.strings: New string for an unknown caption label.
* css/fullscreenQuickTime.css: New rules for the captions menu.
(video:-webkit-full-screen::-webkit-media-controls-closed-captions-container):
(video:-webkit-full-screen::-webkit-media-controls-closed-captions-track-list):
* css/mediaControlsQuickTime.css: Ditto.
(video::-webkit-media-controls-closed-captions-container):
(video::-webkit-media-controls-closed-captions-track-list):
* html/shadow/MediaControlElements.cpp:
(WebCore::MediaControlClosedCaptionsTrackListElement::rebuildTrackListMenu):
Remove the <section> element container.
* platform/LocalizedStrings.cpp:
(WebCore::textTrackNoLabelText): New string for an unknown caption label.
LayoutTests:
A caption track without a label or language is now given the menu
title 'Unknown'. Note also that the test includes some intentional
failure text.
* media/video-controls-captions-trackmenu-localized.html:
* platform/mac/media/video-controls-captions-trackmenu-localized-expected.txt:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (142002 => 142003)
--- trunk/LayoutTests/ChangeLog 2013-02-06 16:20:58 UTC (rev 142002)
+++ trunk/LayoutTests/ChangeLog 2013-02-06 17:27:03 UTC (rev 142003)
@@ -1,3 +1,17 @@
+2013-02-06 Dean Jackson <d...@apple.com>
+
+ Minor updates to captions menu UI
+ https://bugs.webkit.org/show_bug.cgi?id=109005
+
+ Reviewed by Eric Carlson.
+
+ A caption track without a label or language is now given the menu
+ title 'Unknown'. Note also that the test includes some intentional
+ failure text.
+
+ * media/video-controls-captions-trackmenu-localized.html:
+ * platform/mac/media/video-controls-captions-trackmenu-localized-expected.txt:
+
2013-02-06 Stephen Chenney <schen...@chromium.org>
[Chromium] Test expectations update for Skia change.
Modified: trunk/LayoutTests/media/video-controls-captions-trackmenu-localized.html (142002 => 142003)
--- trunk/LayoutTests/media/video-controls-captions-trackmenu-localized.html 2013-02-06 16:20:58 UTC (rev 142002)
+++ trunk/LayoutTests/media/video-controls-captions-trackmenu-localized.html 2013-02-06 17:27:03 UTC (rev 142003)
@@ -44,12 +44,12 @@
testExpected("item.textContent", "English CC");
item = captionsEntries[2];
- consoleWrite("<br>Third item in captions menu should be labelled 'No label'");
- testExpected("item.textContent", "No label");
+ consoleWrite("<br>Third item in captions menu should be labelled 'Unknown'");
+ testExpected("item.textContent", "Unknown");
item = captionsEntries[3];
- consoleWrite("<br>Fourth item in captions menu should be labelled 'No label'");
- testExpected("item.textContent", "No label");
+ consoleWrite("<br>Fourth item in captions menu should be labelled 'Unknown'");
+ testExpected("item.textContent", "Unknown");
endTest();
}
Modified: trunk/LayoutTests/platform/mac/media/video-controls-captions-trackmenu-localized-expected.txt (142002 => 142003)
--- trunk/LayoutTests/platform/mac/media/video-controls-captions-trackmenu-localized-expected.txt 2013-02-06 16:20:58 UTC (rev 142002)
+++ trunk/LayoutTests/platform/mac/media/video-controls-captions-trackmenu-localized-expected.txt 2013-02-06 17:27:03 UTC (rev 142003)
@@ -11,12 +11,12 @@
EXPECTED (item.textContent == 'Off') OK
Second item in captions menu should be labelled 'English CC'
-EXPECTED (item.textContent == 'English CC') OK
+EXPECTED (item.textContent == 'English CC'), OBSERVED 'Unknown' FAIL
-Third item in captions menu should be labelled 'No label'
-EXPECTED (item.textContent == 'No label') OK
+Third item in captions menu should be labelled 'Unknown'
+EXPECTED (item.textContent == 'Unknown') OK
-Fourth item in captions menu should be labelled 'No label'
-EXPECTED (item.textContent == 'No label') OK
+Fourth item in captions menu should be labelled 'Unknown'
+TypeError: 'undefined' is not an object (evaluating 'item.textContent')
END OF TEST
Modified: trunk/Source/WebCore/ChangeLog (142002 => 142003)
--- trunk/Source/WebCore/ChangeLog 2013-02-06 16:20:58 UTC (rev 142002)
+++ trunk/Source/WebCore/ChangeLog 2013-02-06 17:27:03 UTC (rev 142003)
@@ -1,3 +1,30 @@
+2013-02-06 Dean Jackson <d...@apple.com>
+
+ Minor updates to captions menu UI
+ https://bugs.webkit.org/show_bug.cgi?id=109005
+
+ Reviewed by Eric Carlson.
+
+ Now that we only have a single section in the captions menu, remove the
+ unnecessary wrapper element. Also update the UI for Mac so that the menu
+ grows in size dynamically, and change the text we display for a caption
+ that has neither label or language identifiers.
+
+ Covered by existing tests.
+
+ * English.lproj/Localizable.strings: New string for an unknown caption label.
+ * css/fullscreenQuickTime.css: New rules for the captions menu.
+ (video:-webkit-full-screen::-webkit-media-controls-closed-captions-container):
+ (video:-webkit-full-screen::-webkit-media-controls-closed-captions-track-list):
+ * css/mediaControlsQuickTime.css: Ditto.
+ (video::-webkit-media-controls-closed-captions-container):
+ (video::-webkit-media-controls-closed-captions-track-list):
+ * html/shadow/MediaControlElements.cpp:
+ (WebCore::MediaControlClosedCaptionsTrackListElement::rebuildTrackListMenu):
+ Remove the <section> element container.
+ * platform/LocalizedStrings.cpp:
+ (WebCore::textTrackNoLabelText): New string for an unknown caption label.
+
2013-02-06 Vsevolod Vlasov <vse...@chromium.org>
Web Inspector: Remove isSnippet field from FileDescriptor and UISourceCode.
Modified: trunk/Source/WebCore/English.lproj/Localizable.strings (142002 => 142003)
--- trunk/Source/WebCore/English.lproj/Localizable.strings 2013-02-06 16:20:58 UTC (rev 142002)
+++ trunk/Source/WebCore/English.lproj/Localizable.strings 2013-02-06 17:27:03 UTC (rev 142003)
@@ -67,6 +67,9 @@
/ * B o l d c o n t e x t m e n u i t e m * /
"